fn extend<I: IntoIterator<Item=T>>(&mut self, it: I) {
        for sample in it {
            self.add(sample);
        }
    }
/// Adds each elements from an iterator to the table.
///
/// # Examples
///
/// ```rust
/// use countrs::Counter;
/// 
/// let mut counter = Counter::default();
/// counter.extend("aaaabbbc".chars());
///
/// assert_eq!(counter.count(&'a'), 4);
/// ```
Adds each elements from an iterator to the table.
Adds each elements from an iterator to the table .
fn extend<I: IntoIterator<Item=T>>(&mut self, it: I) {
        for sample in it {
            self.add(sample);
        }
    }
fn extend < I : IntoIterator < Item = T > > ( & mut self , it : I ) { for sample in it { self . add ( sample ) ; } }
Adds each elements from an iterator to the table.
Adds each elements from an iterator to the table .
&mut self
it
I
&mut self
it
I
examples
```rust
use countrs::Counter.

let mut counter = Counter::default();
counter.extend("aaaabbbc".chars()).


` ` ` rust use countrs :: Counter . let mut counter = Counter :: default () ; counter . extend ( " aaaabbbc " . chars () ) .