Alias frontOr
Retrieves the front of a range or a default value
alias frontOr
;
See dub package optional.frontOr
Since
- 0.0.1
Example
assert((int[]) .init .frontOr(7) == 7);
assert([1, 2] .frontOr(3) == 1);
Retrieves the front of a range or a default value
alias frontOr
;
See dub package optional.frontOr
- 0.0.1
assert((int[]) .init .frontOr(7) == 7);
assert([1, 2] .frontOr(3) == 1);