MCPcopy Index your code
hub / github.com/graphql-python/graphene / insert

Function insert

graphene/utils/crunch.py:9–17  ·  view source on GitHub ↗
(value, index, values)

Source from the content-addressed store, hash-verified

7
8
9def insert(value, index, values):
10 key = to_key(value)
11
12 if key not in index:
13 index[key] = len(values)
14 values.append(value)
15 return len(values) - 1
16
17 return index.get(key)
18
19
20def flatten(data, index, values):

Callers 1

flattenFunction · 0.85

Calls 2

to_keyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…