Skip to content

Instantly share code, notes, and snippets.

View gavrilovmiroslav's full-sized avatar
🎯
Focusing

Miroslav gavrilovmiroslav

🎯
Focusing
View GitHub Profile
// 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)