Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hwholiday/learning_tools
/ Pop
Method
Pop
container/heap/heap.go:30–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
func
(m *Queue) Pop()
interface
{} {
31
//抛出后面的一个数据
32
l := len(*m)
33
s := (*m)[l-1]
34
s.index = -1
35
*m = (*m)[:l-1]
36
return
s
37
}
38
39
Callers
1
TestHeap
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestHeap
Function · 0.64