NotFunction removes elements from the Selection that pass the function's test. It returns a new Selection object with the matching elements removed.
(f func(int, *Selection) bool)
| 36 | // NotFunction removes elements from the Selection that pass the function's test. |
| 37 | // It returns a new Selection object with the matching elements removed. |
| 38 | func (s *Selection) NotFunction(f func(int, *Selection) bool) *Selection { |
| 39 | return pushStack(s, winnowFunction(s, f, false)) |
| 40 | } |
| 41 | |
| 42 | // FilterNodes reduces the set of matched elements to those that match the specified nodes. |
| 43 | // It returns a new Selection object for this subset of elements. |