3 ms·
That is not an accurate translation. Using the two lists is not the same as using one list, then the other; it does the Cartesian closure. You've got other prob
by jerf 16y ago
That is not an accurate translation. Using the two lists is not the same as using one list, then the other; it does the Cartesian closure. You've got other problems, too, such as the fact that won't compose anything like a monad will, but that will do for a start.
Monads are trivial to implement in other languages if you skip the way they use functions and thereby implement not-actually-a-Monad. I won't say C++ can't do a monad nicely but it certainly isn't going to be that easy.