Skip to content

MapIndexed

Applies a function to each element and its index.

$ wo 'MapIndexed[f, {a, b, c}]'
{f[a, {1}], f[b, {2}], f[c, {3}]}