Maps elements from one structure to another one by applying transform to them alongside with their indices.