hcIndexedMap<T> method

Iterable<T> hcIndexedMap<T>(
  1. T f(
    1. E element,
    2. int index
    )
)

Indexed Map

Implementation

Iterable<T> hcIndexedMap<T>(T Function(E element, int index) f) {
  var index = 0;
  return map((e) => f(e, index++));
}