Adding an index with functional methods like map, reduce, filter

Related topic: Add forEachWithIndex to Array