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 th
filter
filterNot
You might want to take a look at scalex.org - it allows you to search the scala standard library for functions by their signature. For example, type the following:
List[A] => (A => Boolean) => (List[A], List[A])
You would see partition.