starmap<T> method

Iterable<T> starmap<T>(
  1. T toElement(
    1. T1,
    2. T2,
    3. T3,
    4. T4,
    )
)

Make an iterator that computes the function using arguments obtained from the iterable. Used instead of map() when argument parameters are already grouped in tuples from a single iterable (the data has been “pre-zipped”).

Implementation

Iterable<T> starmap<T>(T Function(T1, T2, T3, T4) toElement) {
  return map((e) => toElement(e.item1, e.item2, e.item3, e.item4));
}