MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / UnsortedList

Method UnsortedList

pkg/funclet/runtime/cgroup/string.go:178–184  ·  view source on GitHub ↗

UnsortedList returns the slice with contents in random order.

()

Source from the content-addressed store, hash-verified

176
177// UnsortedList returns the slice with contents in random order.
178func (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.
187func (s String) PopAny() (string, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected