/** * @short * Create two *partitions* based on a condition. * * @categories * static * * @description * This function returns an array of two elements. Both of the elements are * iterables. The first iterable will yield values from the source iterable * which satisfy the given condition. The second iterable will yield values * from the source iterable which do not satisfy the given condition. * * The signature is guard-friendly. * * @parameter * condition * (t: T) => boolean * * @returns * [Iterable, Iterable] * * @example * j.Partition( * [1, 2, 3, 4, 5, 6], * x => x % 2 == 0, * ) * // => [ [2, 4, 6], [1, 3, 5] ] * * @example * j.Partition( * [1, 2, 3], * x => x < 0, * ) * // => [ [], [1, 2, 3] ] */ export declare function Partition(iterable: Iterable, guard: (t: T) => t is U): [IterableIterator, IterableIterator>]; export declare function Partition(iterable: Iterable, condition: (t: T) => boolean): [IterableIterator, IterableIterator];