Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
func
(s *Stack) IsEmpty() bool {
13
return
len(*s) == 0
14
}
15
16
func
(s *Stack) Size() int {
17
return
len(*s)
Callers
4
initClassObject
Method · 0.95
TestStack_Peek
Function · 0.95
pushStack
Method · 0.80
currentScope
Method · 0.80
Calls
no outgoing calls
Tested by
1
TestStack_Peek
Function · 0.76