MCPcopy Create free account
hub / github.com/crossoverJie/gscript / IsEmpty

Method IsEmpty

stack/stack.go:12–14  ·  view source on GitHub ↗

IsEmpty check if Stack is empty

()

Source from the content-addressed store, hash-verified

10
11// IsEmpty check if Stack is empty
12func (s *Stack) IsEmpty() bool {
13 return len(*s) == 0
14}
15
16func (s *Stack) Size() int {
17 return len(*s)

Callers 4

initClassObjectMethod · 0.95
TestStack_PeekFunction · 0.95
pushStackMethod · 0.80
currentScopeMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestStack_PeekFunction · 0.76