[Haskell-cafe] Splitting list with predicate

Daniel Fischer daniel.is.fischer at web.de
Sun Mar 14 16:25:22 EDT 2010


Am Sonntag 14 März 2010 21:19:19 schrieb michael rice:
> Thanks all,
>
> Wouldn't one need to know the order of the arguments?
>
> (a -> Bool) -> [a] -> ([a], [a])

hoogle also lists functions with "similar" types, so it probably also would 
find partition if you searched for a function of type 
[a] -> (a -> Bool) -> ([a],[a]).
In this case, that would be a quite unnatural argument order, but of course 
there are other cases.



More information about the Haskell-Cafe mailing list