[Haskell-beginners] Iterating a monadic action with memoization

Tim Cowlishaw tim at timcowlishaw.co.uk
Mon Aug 15 10:06:59 CEST 2011


On Mon, Aug 15, 2011 at 9:00 AM, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:

>> iterate (>>= f) . return $ a

Sorry, I meant:

> sequence . iterate (>>= f) . return $ a

Thanks,

Tim



More information about the Beginners mailing list