last

Returns optional end of range

alias last = from!"ddash.range".maybeBack

Examples

import optional: some, none;
assert([1, 2].last == some(2));
assert((int[]).init.last == none);

Meta

Since

- 0.0.1