followedBy method
Returns the lazy concatentation of this iterable and other
.
The returned iterable will provide the same elements as this iterable,
and, after that, the elements of other
, in the same order as in the
original iterables.
Implementation
Iterable<E> followedBy(Iterable<E> other) {
if (this is EfficientLengthIterable<E>) {
return new FollowedByIterable<E>.firstEfficient(this, other);
}
return new FollowedByIterable<E>(this, other);
}