front

pragma(inline, true) ref
inout(T)
front
(
size_t dim = 0
T
)
(
scope return inout(T)[] ar
)
if (
!dim &&
!is(Unqual!T[] == void[])
)

Examples

assert(*&[3, 4].front == 3); // access be ref
assert([3, 4].front!0 == 3); // Slice-like API

Meta