HasAny returns true if any items are contained in the set.
(items ...string)
| 77 | |
| 78 | // HasAny returns true if any items are contained in the set. |
| 79 | func (s String) HasAny(items ...string) bool { |
| 80 | for _, item := range items { |
| 81 | if s.Has(item) { |
| 82 | return true |
| 83 | } |
| 84 | } |
| 85 | return false |
| 86 | } |
| 87 | |
| 88 | // Difference returns a set of objects that are not in s2 |
| 89 | // For example: |