Garden 🌻

List::concat()

Return a new list with all the items from this, followed by all the items from other.

Example
[1, 2].concat([3, 4]) //-> [1, 2, 3, 4]
Source Code
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
}