followedBy method

view source

Iterable<T> followedBy (Iterable<T> other) inherited

Implementation

Iterable<E> followedBy(Iterable<E> other) {
  var self = this; // TODO(lrn): Remove when we can promote `this`.
  if (self is EfficientLengthIterable<E>) {
    return FollowedByIterable<E>.firstEfficient(self, other);
  }
  return FollowedByIterable<E>(this, other);
}