MCPcopy
hub / github.com/qax-os/excelize / Pop

Method Pop

lib.go:1014–1021  ·  view source on GitHub ↗

Pop the top item of the stack and return it.

()

Source from the content-addressed store, hash-verified

1012
1013// Pop the top item of the stack and return it.
1014func (stack *Stack) Pop() interface{} {
1015 e := stack.list.Back()
1016 if e != nil {
1017 stack.list.Remove(e)
1018 return e.Value
1019 }
1020 return nil
1021}
1022
1023// Peek view the top item on the stack.
1024func (stack *Stack) Peek() interface{} {

Callers 8

TestStackFunction · 0.95
formulaCriteriaEvalFunction · 0.95
evalInfixExpMethod · 0.80
evalInfixExpFuncMethod · 0.80
prepareEvalInfixExpFunction · 0.80
calculateFunction · 0.80
parseTokenMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.76