// Crimes returns all of the Crimes in a SearchResult.
Crimes returns all of the Crimes in a SearchResult.
// Crimes returns all of the Crimes in a SearchResult .
func (r SearchResult) Crimes() Crimes {
	crimes := make(Crimes, 0)
	for _, loc := range r.Locations {
		for _, crime := range loc.Crimes {
			crimes = append(crimes, crime)
		}
	}
	return crimes
}
func ( r SearchResult ) Crimes ( ) Crimes { crimes := make ( Crimes , 0 ) for _ , loc := range r . Locations { for _ , crime := range loc . Crimes { crimes = append ( crimes , crime ) } } return crimes }
Crimes returns all of the Crimes in a SearchResult.
Crimes returns all of the Crimes in a SearchResult .