unshift multimethod

Methods

unshift(arr:Arr, elt:Any) Source: stdlib.ngs:2826
Prepend one element to the given array

Returns

Modified arr

Example

x=[1,2]
x.unshift(3)
echo(x)  # Outputs: [3,1,2]