Spec-Zone.ru › Dart 2

dart:collection

метод followedBy

Iterable<E> followedBy(
  1. Iterable<E> other
)
переопределение

Возвращает ленивую конкатенацию этого итерируемого объекта и other.

Возвращаемый итерируемый объект будет содержать те же элементы, что и этот итерируемый объект, а затем элементы other в том же порядке, что и в исходных итерируемых объектах.

Пример:

var planets = <String>['Earth', 'Jupiter'];
var updated = planets.followedBy(['Mars', 'Venus']);
print(updated); // (Earth, Jupiter, Mars, Venus)

Реализация

Iterable<E> followedBy(Iterable<E> other) =>
    FollowedByIterable<E>.firstEfficient(this, other);

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

Spec-Zone.ru

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