How do I split a sequence into two lists by a predicate?
Alternative: I can use filter
and filterNot
, or write my own method, but isn't there a better more general (built-in) method ?
How do I split a sequence into two lists by a predicate?
Alternative: I can use filter
and filterNot
, or write my own method, but isn't there a better more general (built-in) method ?