Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baowenbo/DAIN
/ pop
Method
pop
Stack.py:5–9 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3
def
__init__(self):
4
self.stack = []
5
def
pop(self):
6
if
self.is_empty():
7
return
None
8
else
:
9
return
self.stack.pop()
10
def
push(self,val):
11
return
self.stack.append(val)
12
def
peak(self):
Callers
2
forward_singlePath
Method · 0.95
forward_singlePath
Method · 0.95
Calls
1
is_empty
Method · 0.95
Tested by
no test coverage detected