"Ariel J. Birnbaum" <[EMAIL PROTECTED]> 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.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to