// ValidCarIDs returns a set of all cars chosen within the given class
ValidCarIDs returns a set of all cars chosen within the given class
// ValidCarIDs returns a set of all cars chosen within the given class
func (c *ChampionshipClass) ValidCarIDs() []string {
	cars := make(map[string]bool)
	for _, e := range c.Entrants {
		cars[e.Model] = true
	}
	var out []string
	for car := range cars {
		out = append(out, car)
	}
	return out
}
func ( c * ChampionshipClass ) ValidCarIDs ( ) [ ] string { cars := make ( map [ string ] bool ) for _ , e := range c . Entrants { cars [ e . Model ] = true } var out [ ] string for car := range cars { out = append ( out , car ) } return out }
ValidCarIDs returns a set of all cars chosen within the given class
ValidCarIDs returns a set of all cars chosen within the given class