MCPcopy
hub / github.com/candid82/joker / Plus

Method Plus

core/array_map.go:181–189  ·  view source on GitHub ↗
(key Object, value Object)

Source from the content-addressed store, hash-verified

179}
180
181func (m *ArrayMap) Plus(key Object, value Object) *ArrayMap {
182 i := m.indexOf(key)
183 if i != -1 {
184 return m
185 }
186 m.arr = append(m.arr, key)
187 m.arr = append(m.arr, value)
188 return m
189}
190
191func (m *ArrayMap) Count() int {
192 return len(m.arr) / 2

Callers 15

makeFnFormFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80
InternsOrThunksFunction · 0.80

Calls 1

indexOfMethod · 0.95

Tested by

no test coverage detected