
26 Sep
2008
26 Sep
'08
4:11 a.m.
"Ariel J. Birnbaum"
And the one liner: (rand 1 10) >>= return . (\v -> take v [1..10])
What about: take <$> rand 1 10 <*> pure [1..10]
The reason why this doesn't work by default is the occurrence distribution of tutorials about warm, fuzzy things and warm, funky things. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or broadcasting of this signature prohibited.