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

Method Delete

util/map.go:42–48  ·  view source on GitHub ↗
(k K)

Source from the content-addressed store, hash-verified

40}
41
42func (m *Map[K, V]) Delete(k K) (v V, ok bool) {
43 var r any
44 if r, ok = m.Map.LoadAndDelete(k); ok {
45 v = r.(V)
46 }
47 return
48}
49
50func (m *Map[K, V]) ToList() (r []V) {
51 m.Map.Range(func(k, v interface{}) bool {

Callers 6

actionMethod · 0.45
onSuberCloseMethod · 0.45
startPushMethod · 0.45
startPullMethod · 0.45
WriteMethod · 0.45
DeleteWriterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected