eris.array

In-place manipulation of slices.

Members

Functions

shift
void shift(T[] slice, size_t index, T x)

Inserts at a given index in the slice while dropping its last element.

shiftLeft
void shiftLeft(T[] slice, size_t n)

Shift elements in the slice by n > 0 positions to the left.

shiftRight
void shiftRight(T[] slice, size_t n)

Shift all elements in the slice by n > 0 positions to the right.

unshift
T unshift(T[] slice, size_t index)

Pops an elemens from a given index in the slice.