Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tmhedberg
· 11y ago · 0 comments
`zip toss toss` only produces 2 of the possible outcomes. Try `liftA2 (,) toss toss` instead.
Comments
[–]
Veedrac
11y ago
There's always [(a, b) | a <- toss, b <- toss]. It's not as Haskell-y, but it's simpler.