Function Array.back

inout ref inout(T) back() @property @trusted;

Returns

The last element.

Precondition

!empty.

Example

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

assert(v.back == 5);

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