origamitower / folktale

[not actively maintained!] A standard library for functional programming in JavaScript
https://folktale.origamitower.com/
MIT License
2.05k stars 102 forks source link

Feat/typescript abstractions #181

Closed davidlibland closed 5 years ago

davidlibland commented 6 years ago

This commit adds some basic typescript abstractions for Functors, Applicatives, Monads, and Semigroups.

Most of the abstractions are as abstract typescript classes. The reason for this design decision is that certain derived methods can be added automatically by simply extending these classes (for instance, the applicative apply method is added automatically once one overrides map and chain in a Monad).

ToDo: Add derivations for fantasyland synonymous methods from the basic methods.