Array.back

struct Array(T)
@property ref inout @trusted
inout(T)
back
()

Return Value

Type: inout(T)

The last element.

Precondition: !empty.

Examples

auto v = Array!int([5]);

assert(v.back == 5);

v.length = 2;
v[1] = 15;
assert(v.back == 15);

Meta