cartesian5<T2, T3, T4, T5> method
Generates the cartesian product of this iterable and four other iterables.
Generates all the elements in the cartesian product between this
and the provided iterables. The resulting iterable will consist
of an iterable of Tuple5
with each combination of each element from this
iterable and each element from each other iterable
Implementation
Iterable<Tuple5<T, T2, T3, T4, T5>> cartesian5<T2, T3, T4, T5>(
Iterable<T2> o2,
Iterable<T3> o3,
Iterable<T4> o4,
Iterable<T5> o5,
) 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) {
yield Tuple5(a, b, c, d, e);
}
}
}
}
}
}