Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/wavetermdev/waveterm
/ peek
Method
peek
pkg/util/utilfn/partial.go:37–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(s jsonStack) peek() stackItem {
38
if
len(s) == 0 {
39
return
stackInvalid
40
}
41
return
s[len(s)-1]
42
}
43
func
(s jsonStack) isTop(items ...stackItem) bool {
44
top := s.peek()
45
for
_, item :=
range
items {
Callers
1
isTop
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected