[Haskell-cafe] Splitting list with predicate

Simon Hengel simon.hengel at wiktory.org
Sun Mar 14 16:31:33 EDT 2010


> 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.


More information about the Haskell-Cafe mailing list