Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grantjenks/python-sortedcontainers
/ fill_values
Function
fill_values
tests/benchmark_sortedset.py:176–181 ·
view source on GitHub ↗
(obj, size)
Source
from the content-addressed store, hash-verified
174
pass
175
176
def
fill_values(obj, size):
177
if
hasattr(obj,
'update'
):
178
obj.update(sorted(lists[size]))
179
else
:
180
for
val in lists[size]:
181
obj.add(val)
182
183
# Implementation imports.
184
Callers
nothing calls this directly
Calls
2
update
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected