shiftLeft

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

The first few n elements in the slice will get overwritten.

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

Examples

static int[] empty = [];
empty.shiftLeft(2); // does nothing

See Also