Spec-Zone.ru › Dart 1

dart:collection

Метод removeLast

E removeLast()

Удаляет и возвращает последний элемент очереди.

Очередь не должна быть пустой при вызове этого метода.

Исходный код

E removeLast() {
  if (_head == _tail) throw IterableElementError.noElement();
  _modificationCount++;
  _tail = (_tail - 1) & (_table.length - 1);
  E result = _table[_tail];
  _table[_tail] = null;
  return result;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/ListQueue/removeLast.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API