[Haskell-cafe] A handy little consequence of the Cont monad
phil at kantaka.co.uk
Mon Feb 4 07:59:43 EST 2008
On Fri, Feb 01, 2008 at 10:19:17PM +0000, Lennart Augustsson wrote:
> It's a matter of taste. I prefer the function composition in this case.
> It reads nicely as a pipeline.
(Hoping not to contribute to any flamage...)
I've always liked $ for this kind of code, if you want to keep the
next xs = runCont $ sequence $ map Cont xs
seems quite natural to me.
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
More information about the Haskell-Cafe