Spec-Zone.ru › Dart 2

dart:collection

Метод removeFirst

E removeFirst()
override

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

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

Реализация

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

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-collection/ListQueue/removeFirst.html

Spec-Zone.ru

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