enumerate<T> function

Iterable<Pair<int, T>> enumerate<T>(
  1. Iterable<T> iterable, [
  2. int start = 0
])

top-level function matching the behaviour of the Python enumerate function

see https://docs.python.org/3/library/functions.html#enumerate

Implementation

Iterable<Pair<int, T>> enumerate<T>(
  Iterable<T> iterable, [
  int start = 0,
]) =>
    iterable.enumerate(start);