Cool. Will keep that in mind next time I'm looking for an operation but don't know what it's called.
Michael
--- On Sun, 3/14/10, Simon Hengel <simon.hengel@wiktory.org> wrote:
From: Simon Hengel <simon.hengel@wiktory.org> Subject: Re: [Haskell-cafe] Splitting list with predicate To: "michael rice" <nowgate@yahoo.com> Cc: haskell-cafe@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.
Cheers.
|