Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/copernet/copernicus
/ Push
Method
Push
util/stack.go:15–17 ·
view source on GitHub ↗
(value interface{})
Source
from the content-addressed store, hash-verified
13
}
14
15
func
(s *Stack) Push(value
interface
{}) {
16
s.array = append(s.array, value)
17
}
18
19
func
(s *Stack) Swap(i int, j int) bool {
20
if
i > s.Size()-1 || i < 0 {
Callers
4
EvalScript
Function · 0.95
TestStackCountBool
Function · 0.95
TestStack
Function · 0.95
TestSwapStack
Function · 0.95
Calls
no outgoing calls
Tested by
3
TestStackCountBool
Function · 0.76
TestStack
Function · 0.76
TestSwapStack
Function · 0.76