pub fn named_value(&self, s: &str) -> Result<&Sexp, SexpError> {
        let v = self.list()?;
        if v.len() != 2 {
            return Err(format!("list {} is not a named_value", s).into());
        }
        let l = self.slice_atom_int(s)?;
        Ok(&l[0])
    }
/// access the symbolic-expression as if it is a named List
/// with two elements where the name is provided and returns
/// the next element in the list
access the symbolic-expression as if it is a named List
with two elements where the name is provided and returns
the next element in the list
access the symbolic - expression as if it is a named List with two elements where the name is provided and returns the next element in the list
pub fn named_value(&self, s: &str) -> Result<&Sexp, SexpError> {
        let v = self.list()?;
        if v.len() != 2 {
            return Err(format!("list {} is not a named_value", s).into());
        }
        let l = self.slice_atom_int(s)?;
        Ok(&l[0])
    }
pub fn named_value ( & self , s : & str ) -> Result < & Sexp , SexpError > { let v = self . list ( ) ? ; if v . len ( ) != 2 { return Err ( format ! ( " " s ) . into ( ) ) ; } let l = self . slice_atom_int ( s ) ? ; Ok ( & l [ 0 ] ) }
access the symbolic-expression as if it is a named List
with two elements where the name is provided and returns
the next element in the list
access the symbolic - expression as if it is a named List with two elements where the name is provided and returns the next element in the list
&self
s
&str