Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/compose
/ Has
Method
Has
pkg/utils/set.go:31–34 ·
view source on GitHub ↗
(v T)
Source
from the content-addressed store, hash-verified
29
}
30
31
func
(s Set[T]) Has(v T) bool {
32
_, ok := s[v]
33
return
ok
34
}
35
36
func
(s Set[T]) Add(v T) {
37
s[v] =
struct
{}{}
Callers
3
TestSet_Has
Function · 0.80
Start
Method · 0.80
childrenTasks
Method · 0.80
Calls
no outgoing calls
Tested by
1
TestSet_Has
Function · 0.64