News for hackers. Stuff that matters.
Re:Hello, World by tmhedberg on Sunday May 17, 2015 @11:24PM (#9562744)
`zip toss toss` only produces 2 of the possible outcomes. Try `liftA2 (,) toss toss` instead.
Re:Hello, World by Veedrac on Monday May 18, 2015 @01:04AM (#9562930)
There's always [(a, b) | a <- toss, b <- toss]. It's not as Haskell-y, but it's simpler.