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 <[email protected]> wrote:

From: Simon Hengel <[email protected]>
Subject: Re: [Haskell-cafe] Splitting list with predicate
To: "michael rice" <[email protected]>
Cc: [email protected]
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.



      
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to