1 | /**
|
2 | * Working with value pairs.
|
3 | *
|
4 | * @module pair
|
5 | */
|
6 | /**
|
7 | * @template L,R
|
8 | */
|
9 | export class Pair<L, R> {
|
10 | /**
|
11 | * @param {L} left
|
12 | * @param {R} right
|
13 | */
|
14 | constructor(left: L, right: R);
|
15 | left: L;
|
16 | right: R;
|
17 | }
|
18 | export function create<L, R>(left: L, right: R): Pair<L, R>;
|
19 | export function createReversed<L, R>(right: R, left: L): Pair<L, R>;
|
20 | export function forEach<L, R>(arr: Pair<L, R>[], f: (arg0: L, arg1: R) => any): void;
|
21 | export function map<L, R, X>(arr: Pair<L, R>[], f: (arg0: L, arg1: R) => X): X[];
|
22 | //# sourceMappingURL=pair.d.ts.map |
\ | No newline at end of file |