NotSelection removes elements from the Selection that match a node in the specified Selection object. It returns a new Selection object with the matching elements removed.
(sel *Selection)
| 64 | // NotSelection removes elements from the Selection that match a node in the specified |
| 65 | // Selection object. It returns a new Selection object with the matching elements removed. |
| 66 | func (s *Selection) NotSelection(sel *Selection) *Selection { |
| 67 | if sel == nil { |
| 68 | return pushStack(s, winnowNodes(s, nil, false)) |
| 69 | } |
| 70 | return pushStack(s, winnowNodes(s, sel.Nodes, false)) |
| 71 | } |
| 72 | |
| 73 | // Intersection is an alias for FilterSelection. |
| 74 | func (s *Selection) Intersection(sel *Selection) *Selection { |