Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/arnauddri/algorithms
/ Len
Method
Len
data-structures/stack/stack.go:19–24 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
func
(s *Stack) Len() int {
20
s.lock.Lock()
21
defer
s.lock.Unlock()
22
23
return
s.len
24
}
25
26
func
(s *Stack) isEmpty() bool {
27
s.lock.Lock()
Callers
1
TestNew
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.36