diff --git a/src/generics/lib.generics.ts b/src/generics/lib.generics.ts index 649c71d..1a4bb2e 100644 --- a/src/generics/lib.generics.ts +++ b/src/generics/lib.generics.ts @@ -150,7 +150,9 @@ namespace __Array { return this; } - // to prevent cycling initialization of T[][] as Array> which causes inf. cycle + // The array methods are free generic functions, built only when called. As methods of a + // generic class, a signature that mentions T[][] (concat, flat) would make building + // Array build Array, then Array, ... without end. @sharesElements function concat(this: T[], ...other: T[][]) { let count = this.length;