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

Method Union

pkg/set/set.go:156–167  ·  view source on GitHub ↗

Union - returns the union with given set as new set.

(sset Set[T])

Source from the content-addressed store, hash-verified

154
155// Union - returns the union with given set as new set.
156func (set Set[T]) Union(sset Set[T]) Set[T] {
157 nset := New[T]()
158 for k := range set {
159 nset.Add(k)
160 }
161
162 for k := range sset {
163 nset.Add(k)
164 }
165
166 return nset
167}
168
169// New - creates new set.
170func New[T comparable]() Set[T] {

Callers 12

bucket-policy.goFile · 0.45
appendStatementFunction · 0.45
TestRemoveStatementsFunction · 0.45
TestAppendStatementFunction · 0.45
TestGetObjectPolicyFunction · 0.45
TestListBucketPoliciesFunction · 0.45
TestGetPolicyFunction · 0.45
AddMethod · 0.45
mergeConditionKeyMapFunction · 0.45
TestIntSetUnionFunction · 0.45
TestStringSetUnionFunction · 0.45
ExampleSet_intSetFunction · 0.45

Calls 1

AddMethod · 0.45

Tested by 8

TestRemoveStatementsFunction · 0.36
TestAppendStatementFunction · 0.36
TestGetObjectPolicyFunction · 0.36
TestListBucketPoliciesFunction · 0.36
TestGetPolicyFunction · 0.36
TestIntSetUnionFunction · 0.36
TestStringSetUnionFunction · 0.36
ExampleSet_intSetFunction · 0.36