/// Create a map from an iterator.
Create a map from an iterator.
Create a map from an iterator .
pub fn from<A: Arena, I>(arena: &'a A, i: I) -> Self
    where
        I: IntoIterator<Item = (K, V)>,
    {
        let mut m = Self::empty();
        for (k, v) in i {
            m = m.add(arena, k, v);
        }
        return m;
    }
pub fn from < A : Arena , I > ( arena : & ' a A , i : I ) -> Self where I : IntoIterator < Item = ( K , V ) > , { let mut m = Self :: empty ( ) ; for ( k , v ) in i { m = m . add ( arena , k , v ) ; } return m ; }
Create a map from an iterator.
Create a map from an iterator .
arena
&'a A
i
I