pub fn from_iterator<I, F>(it : I, oddf : F, rng : R) -> Selector<T, R>
        where I : IntoIterator<Item=T>,
            F : Fn(&T) -> f64,
    {
        let mut res = Selector::new(rng);
        for t in it {
            res.update(oddf(&t), t);
        }
        res
    }
/// Consume the iterator, creating a new selector
Consume the iterator, creating a new selector
Consume the iterator creating a new selector
pub fn from_iterator<I, F>(it : I, oddf : F, rng : R) -> Selector<T, R>
        where I : IntoIterator<Item=T>,
            F : Fn(&T) -> f64,
    {
        let mut res = Selector::new(rng);
        for t in it {
            res.update(oddf(&t), t);
        }
        res
    }
pub fn from_iterator < I , F > ( it : I , oddf : F , rng : R ) -> Selector < T , R > where I : IntoIterator < Item = T > , F : Fn ( & T ) -> f64 , { let mut res = Selector :: new ( rng ) ; for t in it { res . update ( oddf ( & t ) , t ) ; } res }
Consume the iterator, creating a new selector
Consume the iterator creating a new selector
it
I
oddf
F
rng
R
it
I
oddf
F
rng
R