The OpenD Programming Language

back

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

Examples

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

Meta