Maps elements with access to their index.
Example:
list.mapIndexed((i, e) => '$i: $e');
List<R> mapIndexed<R>(R Function(int i, T e) fn) { var i = 0; return map((e) => fn(i++, e)).toList(); }