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