pub fn sketch_slice(&mut self, to_sketch : &[T]) -> Result <(),()> {
        let nb_elem = to_sketch.len();
        //
        if nb_elem == 0 {
            println!(" empty arg");
            return Err(());
        }
        //
        for i in 1..nb_elem {
            self.sketch(&to_sketch[i]).unwrap();
        }
        //
        return Ok(());
    }
/// Arg to_sketch is an array ( a slice) of values to hash.
/// It can be used in streaming to update current sketch
Arg to_sketch is an array ( a slice) of values to hash.
It can be used in streaming to update current sketch
Arg to_sketch is an array ( a slice ) of values to hash . It can be used in streaming to update current sketch
pub fn sketch_slice(&mut self, to_sketch : &[T]) -> Result <(),()> {
        let nb_elem = to_sketch.len();
        //
        if nb_elem == 0 {
            println!(" empty arg");
            return Err(());
        }
        //
        for i in 1..nb_elem {
            self.sketch(&to_sketch[i]).unwrap();
        }
        //
        return Ok(());
    }
pub fn sketch_slice ( & mut self , to_sketch : & [ T ] ) -> Result < ( ) , ( ) > { let nb_elem = to_sketch . len ( ) ; // if nb_elem == 0 { println ! ( " " ) ; return Err ( ( ) ) ; } // for i in 1 .. nb_elem { self . sketch ( & to_sketch [ i ] ) . unwrap ( ) ; } // return Ok ( ( ) ) ; }
Arg to_sketch is an array ( a slice) of values to hash.
Arg to_sketch is an array ( a slice ) of values to hash .
&mut self
to_sketch
&[T]