union returns the union of s and t, reusing s's storage.
(t stringSet, isSuffix bool)
| 829 | |
| 830 | // union returns the union of s and t, reusing s's storage. |
| 831 | func (s stringSet) union(t stringSet, isSuffix bool) stringSet { |
| 832 | s = append(s, t...) |
| 833 | s.clean(isSuffix) |
| 834 | return s |
| 835 | } |
| 836 | |
| 837 | // cross returns the cross product of s and t. |
| 838 | func (s stringSet) cross(t stringSet, isSuffix bool) stringSet { |