func BetterLapForEachRunner(laps []model.Lap) []model.Lap {
	results := make([]model.Lap, 0)

	for _, lap := range laps {
		i, r, exist := getLap(results, lap.RunnerID)

		if exist {
			results[i] = updateLapForEachRunner(lap, r)
		} else {
			results = append(results, lap)
		}
	}

	return results
}
// BetterLapForEachRunner melhor volta de cada piloto
BetterLapForEachRunner melhor volta de cada piloto
// BetterLapForEachRunner melhor volta de cada piloto
func BetterLapForEachRunner(laps []model.Lap) []model.Lap {
	results := make([]model.Lap, 0)
	for _, lap := range laps {
		i, r, exist := getLap(results, lap.RunnerID)
		if exist {
			results[i] = updateLapForEachRunner(lap, r)
		} else {
			results = append(results, lap)
		}
	}
	return results
}
func BetterLapForEachRunner ( laps [ ] model . Lap ) [ ] model . Lap { results := make ( [ ] model . Lap , 0 ) for _ , lap := range laps { i , r , exist := getLap ( results , lap . RunnerID ) if exist { results [ i ] = updateLapForEachRunner ( lap , r ) } else { results = append ( results , lap ) } } return results }
BetterLapForEachRunner melhor volta de cada piloto
BetterLapForEachRunner melhor volta de cada piloto