Skip to content

Learning Functional Programming library Crocks, Maybe type and more

Notifications You must be signed in to change notification settings

zhentian-wan/fp-crocks-demo

Repository files navigation

Learning FP lib - crocks

Demos

  • Learning how to use Maybe.Just() and Maybe.Nothing(), and how to unwrap a Functor by using .option(n). | Code | Blog | Docs

  • Learning how to use Helper function safe and predicates function isNumber, isString. | Code | Blog | Docs

  • Learning how to use Helper function prop to get value from object or array. | Code | Blog | Docs

  • Learning how to use Helper function propPath for getting nested object value. | Code | Blog | Docs

  • Learning hwo to use Helper instance method chain instead of map, chain known as flatMap in other library. | Code | Blog | Docs

  • Learning how to use Instance method alt to provide an alternative value for Maybe | Code | Blog | Docs

  • Learning how to use Instance method coalesce to provdie a default value inside of Maybe | Code | Blog | Docs

  • Learning how to use compose to rewrite |Code | Blog | Docs

  • Learning how to use ap, liftA2, curry to apply Maybe context of a function | Code | Blog | Docs

  • Learning how to use safeLift to replace safe(pred, n).map(fn) |Code | Blog | Docs

About

Learning Functional Programming library Crocks, Maybe type and more

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published