[Haskell-cafe] Re: Random question
Achim Schneider
barsoap at web.de
Fri Sep 26 00:11:46 EDT 2008
"Ariel J. Birnbaum" <valgarv at gmx.net> wrote:
> > 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.
More information about the Haskell-Cafe
mailing list