partition method
Returns 2 collections as a tuple where the first tuple element will be a
collection of elements that satisfy the given predicate p
. The second
item of the returned tuple will be elements that do not satisfy p
.
Implementation
@override
(IndexedSeq<A>, IndexedSeq<A>) partition(Function1<A, bool> p) {
final (a, b) = super.partition(p);
return (a.toIndexedSeq(), b.toIndexedSeq());
}