concat2 method

Iterable<T> concat2(
  1. Iterable<T> c1,
  2. Iterable<T> c2
)

Concatenates this iterable and two another iterables.

Appends the values of two given Iterables to the end of this iterable, resulting in an iterable that is the concatenation of all of them.

Example:

void main() {
  final list = [0, 1];
  final result = list.concat2(
    [2, 3],
    [4, 5],
  );

  // Result: [0, 1, 2, 3, 4, 5]
}

Implementation

Iterable<T> concat2(
  Iterable<T> c1,
  Iterable<T> c2,
) {
  return followedBy(c1).followedBy(c2);
}