MCPcopy Create free account
hub / github.com/copernet/copernicus / Pop

Method Pop

util/stack.go:31–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30}
31func (s *Stack) Pop() interface{} {
32 stackLen := len(s.array)
33 if stackLen == 0 {
34 return nil
35 }
36 e := s.array[stackLen-1]
37 s.array = s.array[:stackLen-1]
38
39 return e
40}
41func (s *Stack) RemoveAt(index int) bool {
42 if index > s.Size()-1 || index < 0 {
43 return false

Callers 4

VerifyScriptFunction · 0.95
EvalScriptFunction · 0.95
TestStackFunction · 0.95
TestSwapStackFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestStackFunction · 0.76
TestSwapStackFunction · 0.76