Array.opIndexAssign

Assigns a range or a static array.

Parameters

value Range

Value.

Return Value

Type: Range

Assigned value.

Precondition: length == value.length.

Examples

auto v1 = Array!int([12, 1, 7]);

v1[] = 3;
assert(v1[0] == 3);
assert(v1[1] == 3);
assert(v1[2] == 3);

v1[] = [7, 1, 12];
assert(v1[0] == 7);
assert(v1[1] == 1);
assert(v1[2] == 12);

Meta