UNPKG

iter-tools-es

Version:
9 lines 805 B
import { Wrappable, IterableIterator } from '../../types/iterable'; declare function takeSorted<T>(iterable: Wrappable<T>): IterableIterator<T>; declare function takeSorted<T>(n: number): (source: Wrappable<T>) => IterableIterator<T>; declare function takeSorted<T>(n: number, compare: (a: T, b: T) => number): (source: Wrappable<T>) => IterableIterator<T>; declare function takeSorted<T>(compare: (a: T, b: T) => number): (source: Wrappable<T>) => IterableIterator<T>; declare function takeSorted<T>(n: number, source: Wrappable<T>): IterableIterator<T>; declare function takeSorted<T>(n: number, compare: (a: T, b: T) => number, source: Wrappable<T>): IterableIterator<T>; declare function takeSorted<T>(compare: (a: T, b: T) => number, source: Wrappable<T>): IterableIterator<T>; export { takeSorted };