takeFirst method
Implementation
Option<T> takeFirst() {
if (isEmpty) {
return None;
}
var element = _list[_start];
_start++;
return Some(element);
}
Option<T> takeFirst() {
if (isEmpty) {
return None;
}
var element = _list[_start];
_start++;
return Some(element);
}