Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)
(s2 String)
| 155 | // Two sets are equal if their membership is identical. |
| 156 | // (In practice, this means same elements, order doesn't matter) |
| 157 | func (s1 String) Equal(s2 String) bool { |
| 158 | return len(s1) == len(s2) && s1.IsSuperset(s2) |
| 159 | } |
| 160 | |
| 161 | type sortableSliceOfString []string |
| 162 |
nothing calls this directly
no test coverage detected