Retrieves the front of a range or a default value
assert((int[]).init.frontOr(7) == 7); assert([1, 2].frontOr(3) == 1);
See Implementation
- 0.0.1
Retrieves the front of a range or a default value