pub fn average(&self) -> (f32, f32) {
        let mut l = 0;
        let mut w = 0;

        for message in self.messages.iter() {
            l += message.letters().len();
            w += message.words().len();
        }

        let w = w as f32;
        let l = l as f32;

        let c = self.count() as f32;

        (w / c, l / c)
    }
// average letters and words per message
average letters and words per message
average letters and words per message
pub fn average(&self) -> (f32, f32) {
        let mut l = 0;
        let mut w = 0;
        for message in self.messages.iter() {
            l += message.letters().len();
            w += message.words().len();
        }
        let w = w as f32;
        let l = l as f32;
        let c = self.count() as f32;
        (w / c, l / c)
    }
pub fn average ( & self ) -> ( f32 , f32 ) { let mut l = 0 ; let mut w = 0 ; for message in self . messages . iter ( ) { l += message . letters ( ) . len ( ) ; w += message . words ( ) . len ( ) ; } let w = w as f32 ; let l = l as f32 ; let c = self . count ( ) as f32 ; ( w / c , l / c ) }
average letters and words per message
average letters and words per message
&self
&self