pub fn inc_top_array_index(&mut self) {
        if !self.keypath.is_empty() && self.keypath.last().unwrap() == "$" {
            *self.arraypath.last_mut().unwrap() += 1;
        }
    }
/// increments the last array segment by 1. LAst segment must be array,
increments the last array segment by 1. LAst segment must be array.
increments the last array segment by 1 . LAst segment must be array .
pub fn inc_top_array_index(&mut self) {
        if !self.keypath.is_empty() && self.keypath.last().unwrap() == "$" {
            *self.arraypath.last_mut().unwrap() += 1;
        }
    }
pub fn inc_top_array_index ( & mut self ) { if ! self . keypath . is_empty ( ) && self . keypath . last ( ) . unwrap ( ) == " " { * self . arraypath . last_mut ( ) . unwrap ( ) += 1 ; } }
increments the last array segment by 1.
increments the last array segment by 1 .
&mut self
&mut self