pub fn intersection(&self, other: &Alphabet) -> Self {
        return Alphabet {
            symbols: self.symbols.intersection(&other.symbols).collect(),
        };
    }
/// Return a new alphabet taking the intersect between this and other.
///
/// # Example
/// ```
/// use bio::alphabets;
///
/// let alpha_a = alphabets::Alphabet::new(b"acgtACGT");
/// let alpha_b = alphabets::Alphabet::new(b"atcgMVP");
/// let intersect_alpha = alpha_a.intersection(&alpha_b);
///
/// assert_eq!(intersect_alpha, alphabets::Alphabet::new(b"atcg"));
/// ```
Return a new alphabet taking the intersect between this and other.
Return a new alphabet taking the intersect between this and other .
pub fn intersection(&self, other: &Alphabet) -> Self {
        return Alphabet {
            symbols: self.symbols.intersection(&other.symbols).collect(),
        };
    }
pub fn intersection ( & self , other : & Alphabet ) -> Self { return Alphabet { symbols : self . symbols . intersection ( & other . symbols ) . collect ( ) , } ; }
Return a new alphabet taking the intersect between this and other.
Return a new alphabet taking the intersect between this and other .
&self
other
&Alphabet
&self
other
&Alphabet
example
```
use bio::alphabets.

let alpha_a = alphabets::Alphabet::new(b"acgtACGT");
let alpha_b = alphabets::Alphabet::new(b"atcgMVP");
let intersect_alpha = alpha_a.intersection(α_b).

assert_eq!(intersect_alpha, alphabets::Alphabet::new(b"atcg"));
```
` ` ` use bio :: alphabets . let alpha_a = alphabets :: Alphabet :: new ( b " acgtACGT " ) ; let alpha_b = alphabets :: Alphabet :: new ( b " atcgMVP " ) ; let intersect_alpha = alpha_a . intersection ( α_b ) . assert_eq! ( intersect_alpha alphabets :: Alphabet :: new ( b " atcg " )) ; ` ` `