takeLast method

Option<T> takeLast()

Implementation

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