Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/generics/lib.generics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ namespace __Array {
return this;
}

// to prevent cycling initialization of T[][] as Array<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<T> build Array<T[]>, then Array<T[][]>, ... without end.
@sharesElements
function concat<T>(this: T[], ...other: T[][]) {
let count = this.length;
Expand Down
Loading