MCPcopy
hub / github.com/minio/minio-go / Copy

Function Copy

pkg/set/set.go:184–190  ·  view source on GitHub ↗

Copy - returns copy of given set.

(set Set[T])

Source from the content-addressed store, hash-verified

182
183// Copy - returns copy of given set.
184func Copy[T comparable](set Set[T]) Set[T] {
185 nset := make(Set[T], len(set))
186 for k, v := range set {
187 nset[k] = v
188 }
189 return nset
190}

Callers 4

ExampleCopyFunction · 0.92
CopyStringSetFunction · 0.85
TestIntSetCopyFunction · 0.85
CopyIntSetFunction · 0.85

Calls

no outgoing calls

Tested by 2

ExampleCopyFunction · 0.74
TestIntSetCopyFunction · 0.68