[Haskell-beginners] putting together monadic actions
Dennis Raddle
dennis.raddle at gmail.com
Wed Aug 24 01:00:34 UTC 2016
Is there a function foo that does
foo :: a -> [a -> m a] -> a
So
foo 3 [x,x,x] = return 3 >>= x >>= x >>= x
I don't think replicateM and sequence do this. At least I can't figure it
out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160823/7cc64274/attachment.html>
More information about the Beginners
mailing list