Skip to content

zhentian-wan/functional-architecture-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keypoints:

closed + associative

foldMap is the same as .map().reduce()

Keypoints:

Reader: Similar idea to Dependency injection

Keypoints:

Endo: Same input and output types

contramap: transform the input before it passing to the function

Keypoints:

contramap: apply transform function on input arguements

Keypoints:

reducer: Modelling the reducer pattern

Keypoints:

Endo + Fn = Reducer:

// (acc, a) -> acc
// (a, acc) -> acc
// a -> acc -> acc
// a -> (acc -> acc)
// a -> Endo(acc -> acc)
// Fn(a -> Endo(acc -> acc))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published