/** * Partitions the elements of this chunk into two chunks using the specified * function. * * @tsplus static Chunk.Aspects partitionMap * @tsplus pipeable Chunk partitionMap */ export function partitionMap(f: (a: A) => Either) { return (self: Chunk): readonly [Chunk, Chunk] => self.partitionMapWithIndex((_, a) => f(a)) }