[Haskell-cafe] Splitting list with predicate

michael rice nowgate at yahoo.com
Sun Mar 14 19:13:17 EDT 2010

Cool. Will keep that in mind next time I'm looking for an operation but don't know what it's called.


--- On Sun, 3/14/10, Simon Hengel <simon.hengel at wiktory.org> wrote:

From: Simon Hengel <simon.hengel at wiktory.org>
Subject: Re: [Haskell-cafe] Splitting list with predicate
To: "michael rice" <nowgate at yahoo.com>
Cc: haskell-cafe at haskell.org
Date: Sunday, March 14, 2010, 4:31 PM

> Wouldn't one need to know the order of the arguments?
> (a -> Bool) -> [a] -> ([a], [a])
Not really, if you try

[a] -> (a -> Bool) -> ([a], [a])

it will yield the exact same list of results.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100314/a48886ca/attachment.html

More information about the Haskell-Cafe mailing list