How to use scalaz' ContT monad transformer to implement a while loop

168 Views Asked by At

I'm trying to understand how to use the ContT monad transformer in Scalaz 7 to implement a while loop in a functional way while preventing stack overflows. A simple example illustrating the usage of ContT would be very helpful.

0

There are 0 best solutions below