Pass index to applied iterator functions