First 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 the selection is empty.
()
| 18 | // It returns a new Selection object, and an empty Selection object if the |
| 19 | // the selection is empty. |
| 20 | func (s *Selection) First() *Selection { |
| 21 | return s.Eq(0) |
| 22 | } |
| 23 | |
| 24 | // Last reduces the set of matched elements to the last in the set. |
| 25 | // It returns a new Selection object, and an empty Selection object if |