cartesianSelect6<T2, T3, T4, T5, T6, TResult> method

Iterable<TResult> cartesianSelect6<T2, T3, T4, T5, T6, TResult>(
  1. Iterable<T2> o2,
  2. Iterable<T3> o3,
  3. Iterable<T4> o4,
  4. Iterable<T5> o5,
  5. Iterable<T6> o6,
  6. TResult selector(
    1. T element,
    2. T2 o2Element,
    3. T3 o3Element,
    4. T4 o4Element,
    5. T5 o5Element,
    6. T6 o6Element,
    ),
)

Generates the cartesian product of this iterable and five other iterables, returning an iterable of mapped elements.

Generates all the elements in the cartesian product between this and the provided iterables. The resulting iterable will consist of an iterable with each combination of each element from this iterable and each element from each other iterable after being passed through the selector function.

Implementation

Iterable<TResult> cartesianSelect6<T2, T3, T4, T5, T6, TResult>(
  Iterable<T2> o2,
  Iterable<T3> o3,
  Iterable<T4> o4,
  Iterable<T5> o5,
  Iterable<T6> o6,
  TResult Function(T element, T2 o2Element, T3 o3Element, T4 o4Element,
          T5 o5Element, T6 o6Element)
      selector,
) sync* {
  for (var a in this) {
    for (var b in o2) {
      for (var c in o3) {
        for (var d in o4) {
          for (var e in o5) {
            for (var f in o6) {
              yield selector(a, b, c, d, e, f);
            }
          }
        }
      }
    }
  }
}