adam.opIndexAssign

void opIndexAssign(T)(T rhs, size_t index) @safe

Assign a value to an array element at the given index.

Parameters

rhsThe value to assign.
indexThe array index.

Throws

AdamTypeException if this is not an ARRAY.

AdamIndexException if index is out of bounds.

void opIndexAssign(T)(T rhs, string key) @safe

Store rhs under key, promoting NULL to an OBJECT on first write.

Throws

AdamTypeException if the value is a non-NULL, non-OBJECT type.