Re:Hello, World
by anishathalye on Sunday May 17, 2015 @11:03PM
(#9562700)
slightly less verbose:
`zip toss toss` only produces 2 of the possible outcomes. Try `liftA2 (,) toss toss` instead.
There's always [(a, b) | a <- toss, b <- toss]. It's not as Haskell-y, but it's simpler.
slightly less Haskell :)
Re:Hello, World
by markcerqueira on Sunday May 17, 2015 @11:14PM
(#9562723)
But slightly more Haskell... ;)
https://gist.github.com/pipermerriam/d1b5a24230f2f9ec4446