AddBackFiltered reduces the previous set of elements on the stack to those that match the selector string, and adds them to the current set. It returns a new Selection object containing the current Selection combined with the filtered previous one
(selector string)
| 58 | // It returns a new Selection object containing the current Selection combined |
| 59 | // with the filtered previous one |
| 60 | func (s *Selection) AddBackFiltered(selector string) *Selection { |
| 61 | return s.AddSelection(s.prevSel.Filter(selector)) |
| 62 | } |
| 63 | |
| 64 | // AddBackMatcher reduces the previous set of elements on the stack to those that match |
| 65 | // the matcher, and adds them to the current set. |