MCPcopy Create free account
hub / github.com/Monibuca/engine / ToList

Method ToList

util/map.go:50–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (m *Map[K, V]) ToList() (r []V) {
51 m.Map.Range(func(k, v interface{}) bool {
52 r = append(r, v.(V))
53 return true
54 })
55 return
56}
57
58func MapList[K comparable, V any, R any](m *Map[K, V], f func(K, V) R) (r []R) {
59 m.Map.Range(func(k, v interface{}) bool {

Callers 1

CompleteRTPMethod · 0.45

Calls 1

RangeMethod · 0.45

Tested by

no test coverage detected