enumerate<T> function
used as a Python enumerate function
Implementation
Iterable<Enumerator<T?>> enumerate<T>(Iterable<T?> iterable) sync* {
var i = 0;
for (var element in iterable) {
yield Enumerator(i++, element);
}
}