diff --git a/src/arrays/list.ts b/src/arrays/list.ts index 4d7112b..49a9ee0 100644 --- a/src/arrays/list.ts +++ b/src/arrays/list.ts @@ -21,6 +21,18 @@ export class List extends Array { return new List(...arr); } + static fromIterable(iterable: Iterable): List { + return new List(...iterable); + } + + static toArray(list: List): S[] { + return list; + } + + toArray(): T[] { + return this; + } + append(item: T): this { this.push(item);