Support functions added for Monad.Recur #1528
louthy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The support for generalised monad tail-recursion release that I did in the early hours of Christmas Day needed some support functions, as also requested here, so I have added the following functions to the
Monadmodule:Monad.foreverMonad.replicatentimes, collecting the results in anIterable<A>Monad.accumWhiletrue, collecting the results in anIterable<A>Monad.accumWhileMtrue, collecting the results inMonad.accumUntiltrue, collecting the results in anIterable<A>Monad.accumUntilMtrue, collecting the results in anIterable<A>The functions themselves are quite good demonstrations of
Monad.recur, so I have pasted the source-code below just FYI:This discussion was created from the release Support functions added for Monad.Recur.
Beta Was this translation helpful? Give feedback.
All reactions