[Haskell-cafe] Building all possible element combinations from N lists.

Alex Stangl alex at stangl.us
Fri Oct 26 06:35:20 CEST 2012


On Thu, Oct 25, 2012 at 06:34:53PM -0400, Jake McArthur wrote:
> I golfed a bit. :)
> 
>     sequence <=< filterM (const [False ..])

I was thinking of golfing this myself tonight, but probably
wouldn't have come up with this. Thanks for sparing me the effort.

Bravo!

Alex



More information about the Haskell-Cafe mailing list