/// Gets all dance organisations, in alphabetical order.
Gets all dance organisations, in alphabetical order.
Gets all dance organisations in alphabetical order .
pub fn organisations(&self) -> Vec<Organisation> {
        let mut organisations: Vec<Organisation> = count_duplicates(
            self.events
                .iter()
                .filter_map(|event| event.organisation.clone()),
        )
        .into_iter()
        .map(|(name, event_count)| Organisation { name, event_count })
        .collect();
        organisations.sort();
        organisations
    }
pub fn organisations ( & self ) -> Vec < Organisation > { let mut organisations : Vec < Organisation > = count_duplicates ( self . events . iter ( ) . filter_map ( | event | event . organisation . clone ( ) ) , ) . into_iter ( ) . map ( | ( name , event_count ) | Organisation { name , event_count } ) . collect ( ) ; organisations . sort ( ) ; organisations }
Gets all dance organisations, in alphabetical order.
Gets all dance organisations in alphabetical order .
&self