pub fn fold(mut self, mut accumulator: Value, f: Function) -> Result<Value, VmError> {
        while let Some(value) = self.next()? {
            accumulator = f.call::<_, Value>((accumulator, value.clone()))?
        }

        Ok(accumulator)
    }
/// Integrate over the iterator, using accumulator as the initial value and
/// then forwarding the result of each stage.
Integrate over the iterator, using accumulator as the initial value and
then forwarding the result of each stage.
Integrate over the iterator using accumulator as the initial value and then forwarding the result of each stage .
pub fn fold(mut self, mut accumulator: Value, f: Function) -> Result<Value, VmError> {
        while let Some(value) = self.next()? {
            accumulator = f.call::<_, Value>((accumulator, value.clone()))?
        }
        Ok(accumulator)
    }
pub fn fold ( mut self , mut accumulator : Value , f : Function ) -> Result < Value , VmError > { while let Some ( value ) = self . next ( ) ? { accumulator = f . call :: < _ , Value > ( ( accumulator , value . clone ( ) ) ) ? } Ok ( accumulator ) }
Integrate over the iterator, using accumulator as the initial value and
then forwarding the result of each stage.
Integrate over the iterator using accumulator as the initial value and then forwarding the result of each stage .
mut self
accumulator
Value
f
Function
mut self
accumulator
Value
f
Function