Contains returns whether or not the given "i" is contained in this ordered set. It is a constant-time operation.
(i string)
| 51 | // Contains returns whether or not the given "i" is contained in this ordered |
| 52 | // set. It is a constant-time operation. |
| 53 | func (s *OrderedSet) Contains(i string) bool { |
| 54 | if _, ok := s.m[i]; ok { |
| 55 | return true |
| 56 | } |
| 57 | return false |
| 58 | } |
| 59 | |
| 60 | // ContainsAll returns whether or not all of the given items in "i" are present |
| 61 | // in the ordered set. |
no outgoing calls
no test coverage detected