Y
Hacker News
new
|
ask
|
show
|
jobs
by
tmhedberg
4044 days ago
`zip toss toss` only produces 2 of the possible outcomes. Try `liftA2 (,) toss toss` instead.
1 comments
Veedrac
4044 days ago
There's always [(a, b) | a <- toss, b <- toss]. It's not as Haskell-y, but it's simpler.
link