Skip to content

dbrack/maybe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Maybe Monad implementation

Haskell inspired Maybe Monad/Data Type implementation in TypeScript. The base monad implementation obeys the Monad laws.

Run npm install to get started.

Run npm test --watch if you want to tinker with the code and re-run the tests automatically.

Examples

The examples/ directory contains some usage examples. However, most useful is to take a look at the tests.

Additional Resources

  1. Mostly adequate guide to FP
  2. Functors, Applicatives, And Monads In Pictures
  3. JavaScript Monads Made Simple
  4. Fantasy Land Specification (Algebraic JavaScript Specification)
  5. Pattern Matching with TypeScript

Credits

❤ Thanks to my advisor, @swissmanu, for helping me better understand and appreciate this topic.

Releases

No releases published

Packages

No packages published