Static methods
staticconcat<T>(a:Vector<T>, b:Vector<T>):Vector<T>
Appends the elements of the vector b
to the elements of the vector a
This operation doesn't modify a
or b
Parameters:
a | The vector to which elements of |
---|---|
b | The vector whose elements will be appended |
Returns:
Returns a new vector containing elements of a
and b
staticpush<T>(a:Vector<T>, x:T):Vector<T>
Adds the element x
at the end of the vector a
This operation doesn't modify a
Parameters:
a | The vector to which the element will be added |
---|---|
x | The element to be added |
Returns:
Returns a new vector with the added element
staticrearrange<T>(a:Vector<T>, from:Int, to:Int):Void
Changes the position of an element in the vector a
All the positions are being clamped to [0, a.length]
This operation modifies a
in place
Parameters:
a | The vector to which elements of b will be appended |
---|---|
from | Current position of the element |
to | Target position of the element |
Returns:
Returns a new rearranged vector