Lukas Renggli's more package includes many useful tools including 'indexed' which does exactly what you want. From the docs:
indexed(['a', 'b'], offset: 1)
.map((each) => '${each.index}: ${each.value}')
.join(', ');
(You can ignore the offset argument unless you have a Smalltalk background :-).