cartesian4<T2, T3, T4> method
Generates the cartesian product of this iterable and three 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 Tuple4
with each combination of each element from this
iterable and each element from each other iterable
Implementation
Iterable<Tuple4<T, T2, T3, T4>> cartesian4<T2, T3, T4>(
Iterable<T2> o2,
Iterable<T3> o3,
Iterable<T4> o4,
) sync* {
for (var a in this) {
for (var b in o2) {
for (var c in o3) {
for (var d in o4) {
yield Tuple4(a, b, c, d);
}
}
}
}
}