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

Method Has

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

Source from the content-addressed store, hash-verified

19}
20
21func (m *Map[K, V]) Has(k K) (ok bool) {
22 _, ok = m.Load(k)
23 return
24}
25
26func (m *Map[K, V]) Len() (l int) {
27 m.Map.Range(func(k, v interface{}) bool {

Callers 3

SubscribeExistMethod · 0.45
PlayBlockMethod · 0.45
RunFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected