MCPcopy
hub / github.com/cortexlabs/cortex / Copy

Method Copy

pkg/lib/sets/strset/strset.go:182–188  ·  view source on GitHub ↗

Copy returns a new Set with a copy of s.

()

Source from the content-addressed store, hash-verified

180
181// Copy returns a new Set with a copy of s.
182func (s Set) Copy() Set {
183 u := make(Set, len(s))
184 for item := range s {
185 u[item] = _keyExists
186 }
187 return u
188}
189
190// String returns a string representation of s
191func (s Set) String() string {

Callers 15

WriteFileFromReaderFunction · 0.45
CopyFileOverwriteFunction · 0.45
HashFileFunction · 0.45
HashDirectoryFunction · 0.45
StreamDockerLogsFnFunction · 0.45
TestCopyFunction · 0.45
UnionFunction · 0.45
DifferenceFunction · 0.45
IntersectionFunction · 0.45
addMethod · 0.45
UntarReaderToDirFunction · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestCopyFunction · 0.36