Re:Functional Programming Jargon
by eru on Wednesday November 08, 2017 @06:43AM
(#15651467)
Yes, you can do it in C++. But it's not a good medium for teaching those concepts. (The excellent article you linked to explains them in Haskell first, and then shows how to do them in C++ only afterwards.)
https://bartoszmilewski.com/2015/01/20/functors/