MCPcopy 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
19func (s *Stack) Len() int {
20 s.lock.Lock()
21 defer s.lock.Unlock()
22
23 return s.len
24}
25
26func (s *Stack) isEmpty() bool {
27 s.lock.Lock()

Callers 1

TestNewFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.36