4 ms·
Haskell sucks, but they don't even know Haskell. There's a package (https://hackage.haskell.org/package/monad-loops https://hackage.haskell.org/package/monad-lo
by myWindoonn 5y ago
Haskell sucks, but they don't even know Haskell. There's a package (https://hackage.haskell.org/package/monad-loops https://hackage.haskell.org/package/monad-loops) which contains `whileM`, a pure while-loop which works with any Monad.
- bade 5y agoI assume 'they' means me. True I don't know Haskell but from what I can tell these loops are a far cry from what I'm proposing. One variable, monads, and apparently side effects. Mine have multiple variables, no monads, and no side effects - it all gets done by tail recursion.