partition method

  1. @override
(IndexedSeq<A>, IndexedSeq<A>) partition(
  1. Function1<A, bool> p
)
override

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());
}