takeLast method
Implementation
Option<T> takeLast() {
if (isEmpty) {
return None;
}
var element = _list[_end - 1];
_end--;
return Some(element);
}
Option<T> takeLast() {
if (isEmpty) {
return None;
}
var element = _list[_end - 1];
_end--;
return Some(element);
}