News for hackers. Stuff that matters.
Re:Hello, World by anishathalye on Sunday May 17, 2015 @11:03PM (#9562700)
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.
Re:Hello, World by chronial on Monday May 18, 2015 @08:09AM (#9563929)
Re:Hello, World by markcerqueira on Sunday May 17, 2015 @11:14PM (#9562723)
But slightly more Haskell... ;)