MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / ToMap

Method ToMap

pkg/generic_sync/map.go:369–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367}
368
369func (m *MapOf[K, V]) ToMap() map[K]V {
370 ans := make(map[K]V)
371 m.Range(func(key K, value V) bool {
372 ans[key] = value
373 return true
374 })
375 return ans
376}
377
378func (m *MapOf[K, V]) Clear() {
379 m.Range(func(key K, value V) bool {

Callers

nothing calls this directly

Calls 1

RangeMethod · 0.95

Tested by

no test coverage detected