List::concat()
Return a new list with all the items from this, followed by all the items from other.
this
other
[1, 2].concat([3, 4]) //-> [1, 2, 3, 4]
public method concat<T>(this: List<T>, other: List<T>): List<T> { let result: List<T> = this for item in other { result = result.append(item) } result }