Like Iterable
Iterable<T> mapIndex<T>(T Function(E, int) f) { var i = 0; return map((e) => f(e, i++)); }