concat

open fun <T> concat(first: Array<T>, element: T): Array<T>

append an element to an array

Return

first &element

Parameters

first

array to append to — can be null

element

element to append — must not be null

<T>

Element type


open fun <T> concat(first: Array<T>, second: Array<T>): Array<T>

concatenate two arrays

Return

first &second

Parameters

first

first array — can be null but if not then length >0

second

second — must not be null

<T>

element type