copy returns a copy of the set that does not share storage with the original.
()
| 853 | |
| 854 | // copy returns a copy of the set that does not share storage with the original. |
| 855 | func (s stringSet) copy() stringSet { |
| 856 | return append(stringSet{}, s...) |
| 857 | } |
| 858 | |
| 859 | // isSubsetOf returns true if all strings in s are also in t. |
| 860 | // It assumes both sets are sorted. |