/// Reduces the set of matched elements to the first in the set.
/// It returns a new selection object, and an empty selection object if the
/// selection is empty.
Reduces the set of matched elements to the first in the set.
It returns a new selection object, and an empty selection object if the
selection is empty.
Reduces the set of matched elements to the first in the set . It returns a new selection object and an empty selection object if the selection is empty .
pub fn first(&self) -> Selection<'a> {
        if self.length() > 0 {
            Selection::from(self.nodes[0].clone())
        } else {
            Default::default()
        }
    }
pub fn first ( & self ) -> Selection < ' a > { if self . length ( ) > 0 { Selection :: from ( self . nodes [ 0 ] . clone ( ) ) } else { Default :: default ( ) } }
Reduces the set of matched elements to the first in the set.
Reduces the set of matched elements to the first in the set .
&self