Returns optional front of range
import optional: some, none; assert([1, 2].first == some(1)); assert((int[]).init.first == none);
See Implementation
- 0.0.1
Returns optional front of range