1 | import { IIterator, IterableOrArrayLike } from './iter';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare function take<T>(object: IterableOrArrayLike<T>, count: number): IIterator<T>;
|
17 |
|
18 |
|
19 |
|
20 | export declare class TakeIterator<T> implements IIterator<T> {
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | constructor(source: IIterator<T>, count: number);
|
29 | /**
|
30 | * Get an iterator over the object's values.
|
31 | *
|
32 | * @returns An iterator which yields the object's values.
|
33 | */
|
34 | iter(): IIterator<T>;
|
35 | /**
|
36 | * Create an independent clone of the iterator.
|
37 | *
|
38 | * @returns A new independent clone of the iterator.
|
39 | */
|
40 | clone(): IIterator<T>;
|
41 | /**
|
42 | * Get the next value from the iterator.
|
43 | *
|
44 | * @returns The next value from the iterator, or `undefined`.
|
45 | */
|
46 | next(): T | undefined;
|
47 | private _count;
|
48 | private _source;
|
49 | }
|
50 | //# sourceMappingURL=take.d.ts.map |
\ | No newline at end of file |