shortArrayOf

external fun shortArrayOf(vararg elements: Short): ShortArray(source)

Creates a new array containing elements in argument order.

With no arguments, returns a new empty array. Guest calls accept explicit arguments; spreading another array into this factory is not supported.

Return

a new mutable array containing the supplied elements.

Parameters

elements

the elements to include in order.