Node.removeAt

Remove element at the specified index of a collection.

This method can only be called on collection nodes.

If the node is a sequence, index must be integral.

If the node is a mapping, remove the first key-value pair where key matches index.

If the node is a mapping and no key matches index, nothing is removed and no exception is thrown. This ensures behavior siilar to D arrays and associative arrays.

struct Node
void
removeAt
@trusted
(
T
)
()

Throws

NodeException if the node is not a collection, index is out of range or if a non-integral index is used on a sequence node.

Meta