pub fn bands(&self) -> Vec<Band> {
        let mut bands: Vec<Band> =
            count_duplicates(self.events.iter().flat_map(|event| event.bands.clone()))
                .into_iter()
                .map(|(name, event_count)| Band { name, event_count })
                .collect();
        bands.sort();
        bands
    }
/// Gets all bands who play for at least one event, in alphabetical order.
Gets all bands who play for at least one event, in alphabetical order.
Gets all bands who play for at least one event in alphabetical order .
pub fn bands(&self) -> Vec<Band> {
        let mut bands: Vec<Band> =
            count_duplicates(self.events.iter().flat_map(|event| event.bands.clone()))
                .into_iter()
                .map(|(name, event_count)| Band { name, event_count })
                .collect();
        bands.sort();
        bands
    }
pub fn bands ( & self ) -> Vec < Band > { let mut bands : Vec < Band > = count_duplicates ( self . events . iter ( ) . flat_map ( | event | event . bands . clone ( ) ) ) . into_iter ( ) . map ( | ( name , event_count ) | Band { name , event_count } ) . collect ( ) ; bands . sort ( ) ; bands }
Gets all bands who play for at least one event, in alphabetical order.
Gets all bands who play for at least one event in alphabetical order .
&self
&self