Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ set
Method
set
recipes/Python/578366_The_Normal_Cow/recipe-578366.py:44–48 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
42
return
0
43
44
def
set(self, value):
45
if
value:
46
self.mem[self.pos] = value
47
elif
self.pos in self.mem:
48
del self.mem[self.pos]
49
50
def
inc(self):
51
self.pos += 1
Callers
1
run
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected