Array.front

struct Array(T)
@property ref inout
inout(T)
front
()

Return Value

Type: inout(T)

The first element.

Precondition: !empty.

Examples

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

assert(v.front == 5);

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

Meta