starmap<T> method

Iterable<T> starmap<T>(
  1. T toElement(
    1. T1,
    2. T2
    )
)

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) toElement) {
  return map((e) => toElement(e.item1, e.item2));
}