Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ add
Method
add
recipes/Python/576694_OrderedSet/recipe-576694.py:18–22 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
16
return
key in self.map
17
18
def
add(self, key):
19
if
key not in self.map:
20
end = self.end
21
curr = end[1]
22
curr[2] = end[1] = self.map[key] = [key, curr, end]
23
24
def
discard(self, key):
25
if
key in self.map:
Callers
7
__init__
Method · 0.45
add_item
Method · 0.45
recipe-576614.py
File · 0.45
reader
Function · 0.45
worker
Function · 0.45
wordList
Function · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected