removeResize

Removes the element at the provided position in the given array

T[]
removeResize
(
T
)
(
T[] array
,
size_t position
)

Parameters

array T[]

the array

position size_t

position of element to remove

Return Value

Type: T[]

the array

Examples

Tests removing an element from an array

int[] numbas = [1, 5, 2];
numbas = numbas.removeResize(1);

// should now be [1, 2]
writeln(numbas);
assert(numbas == [1, 2]);

Meta