This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Minimal C++ implementation of Functor, Monad and Maybe. | |
* | |
* Requires c++0x variadic templates and lambda expressions: | |
* | |
* g++ -std=c++0x main.cpp -o main | |
* | |
* fmap, monadic bind and return implementations for std::vector | |
* and Maybe. | |
* |