1 | /**
|
2 | * @license
|
3 | * Copyright Google LLC All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | export declare class LinkedList<T extends {
|
9 | next: T | null;
|
10 | }> {
|
11 | private _head;
|
12 | constructor(_head: T);
|
13 | get(l: number): T | null;
|
14 | get head(): T;
|
15 | get length(): number;
|
16 | reduce<R>(accumulator: (acc: R, value: T, index?: number) => R, seed: R): R;
|
17 | find(predicate: (value: T, index?: number) => boolean): T | null;
|
18 | forEach(visitor: (value: T, index?: number) => void): void;
|
19 | }
|