UNPKG

332 BTypeScriptView Raw
1export declare class Cons<A> {
2 value: A;
3 next: Cons<A> | undefined;
4 constructor(value: A, next: Cons<A> | undefined);
5 toArray(): A[];
6 nth(index: number): A | undefined;
7}
8export declare function copyFirst<A>(n: number, list: Cons<A>): Cons<A>;
9export declare function concat<A>(a: Cons<A>, b: Cons<A>): Cons<A>;