ArrayTag.remove

Removes the element at the given index from the array.

class ArrayTag(T, NBT_TYPE _type)
@safe
void
remove
(
size_t index
)

Throws

RangeError if index is higher or equals than the array's length

Examples

auto array = new IntArray([1, 2, 3]);
array.remove(0);
assert(array == [2, 3]);

Meta