MCPcopy
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
31func (s Set[T]) Has(v T) bool {
32 _, ok := s[v]
33 return ok
34}
35
36func (s Set[T]) Add(v T) {
37 s[v] = struct{}{}

Callers 3

TestSet_HasFunction · 0.80
StartMethod · 0.80
childrenTasksMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSet_HasFunction · 0.64