/**
* Separate elements based on a predicate.
*
* @tsplus static Chunk.Aspects partition
* @tsplus pipeable Chunk partition
*/
export function partition(f: Predicate) {
return (self: Chunk): readonly [Chunk, Chunk] =>
self.partitionWithIndex((_, a: A) => f(a))
}