This repository defines a trait MonadTrait. The trait demands two abstract methods to be implemented by every using class, bind and return. These correspond to >>= and "return" in Haskell's Monad interface. The trait further implements join() and map() on the basis of these two methods, thus providing a thicker interface.
-
Notifications
You must be signed in to change notification settings - Fork 0
Monads for PHP
License
hllizi/PHPMonads
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|