/composable-functional-javascript

Composable Functional JavaScript

Primary LanguageJavaScript

Composable Functional JavaScript

Chapters:

  1. Create linear data flow with container style types (Box)
  2. Refactor imperative code to a single composed expression using Box
  3. Enforce a null check with composable code branching using Either
  4. Use chain for composable error handling with nested Either
  5. Examples of Either in comparison with imperative code
  6. Create types with Semigroups
  7. Semigroup examples
  8. Ensure failsafe combination using Monoids
  9. Monoid examples
  10. Unibox types with foldMap
  11. Delay evaluation with LazyBox
  12. Capture side effects in a Task
  13. Use Task for Asynchronous Actions
  14. You have been using Functors
  15. Lift into a pointed Functor with of
  16. You've been using Monads
  17. Build curried functions
  18. Applicative Functors for multiple arguments
  19. Apply multiple Functors as arguments to a function (Applicatives)
  20. List comprehensions with Applicative Functors
  21. Applicatives for concurrent actions
  22. Leapfrogging types with Traversable
  23. Maintaining structure whilst asyncing
  24. Principled type conversions with Natural Transformations
  25. Apply Natural Transformations in everyday work
  26. Isomorphisms and round trip data transformations

How to run

  • Execute using node <filename>

Thanks to Professor Frisby for being a wonderful teacher