/** * @tsplus static Maybe.Aspects partition * @tsplus pipeable Maybe partition */ export function partition( f: Refinement ): (self: Maybe) => readonly [Maybe, Maybe] export function partition(f: Predicate): (self: Maybe) => readonly [Maybe, Maybe] export function partition(f: Predicate) { return ( self: Maybe ): readonly [Maybe, Maybe] => [self.filter((a) => !f(a)), self.filter(f)] }