This file contains hidden or 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
| // recursion schemes in c++: implement `map`, get `fold` for free! | |
| // author: Maxime Tournier | |
| // date: November 2019 | |
| // license: MIT | |
| // TODO: | |
| // - anamorphisms, hylomorphisms & friends | |
| // - handle bi-functors gracefully (not clear whether the usual list functor can | |
| // be implemented together with the one presented here) |