MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / top

Method top

animations/src/algo_stack.py:41–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 return len(self.datas) == 0
40
41 def top(self):
42 if self.empty():
43 print("error call top data")
44 return None
45 return self.nodes[len(self.nodes)-1]
46
47 def top_data(self):
48 if self.empty():

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.95
printFunction · 0.85

Tested by

no test coverage detected