MCPcopy Index your code
hub / github.com/Shopify/go-lua / addOrInsertHash

Method addOrInsertHash

tables.go:82–87  ·  view source on GitHub ↗
(k, v value)

Source from the content-addressed store, hash-verified

80}
81
82func (t *table) addOrInsertHash(k, v value) {
83 if _, ok := t.hash[k]; !ok {
84 t.iterationKeys = nil // invalidate iterations when adding an entry
85 }
86 t.hash[k] = v
87}
88
89func (t *table) putAtInt(k int, v value) {
90 if 0 < k && k <= len(t.array) {

Callers 2

putAtIntMethod · 0.95
putMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected