Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 337 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 337 Bytes

PHPMonads

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.