NGS version 0.2.16 auto-generated documentation
Documentation index
The global namespace
unshift multimethod
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]