pub fn find(mut self, find: Function) -> Result<Option<Value>, VmError> {
        while let Some(value) = self.next()? {
            let result = find.call::<_, bool>((value.clone(),))?;
            if result {
                return Ok(Some(value.clone()));
            }
        }

        Ok(None)
    }
/// Find the first matching value in the iterator using the given function.
Find the first matching value in the iterator using the given function.
Find the first matching value in the iterator using the given function .
pub fn find(mut self, find: Function) -> Result<Option<Value>, VmError> {
        while let Some(value) = self.next()? {
            let result = find.call::<_, bool>((value.clone(),))?;
            if result {
                return Ok(Some(value.clone()));
            }
        }
        Ok(None)
    }
pub fn find ( mut self , find : Function ) -> Result < Option < Value > , VmError > { while let Some ( value ) = self . next ( ) ? { let result = find . call :: < _ , bool > ( ( value . clone ( ) , ) ) ? ; if result { return Ok ( Some ( value . clone ( ) ) ) ; } } Ok ( None ) }
Find the first matching value in the iterator using the given function.
Find the first matching value in the iterator using the given function .
mut self
find
Function
mut self
find
Function