UnsortedList returns the slice with contents in random order.
()
| 176 | |
| 177 | // UnsortedList returns the slice with contents in random order. |
| 178 | func (s String) UnsortedList() []string { |
| 179 | res := make([]string, 0, len(s)) |
| 180 | for key := range s { |
| 181 | res = append(res, key) |
| 182 | } |
| 183 | return res |
| 184 | } |
| 185 | |
| 186 | // Returns a single element from the set. |
| 187 | func (s String) PopAny() (string, bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected