How to map while retaining the index?ΒΆ

todo