MCPcopy Create free account
hub / github.com/DNAProject/DNA / Insert

Method Insert

p2pserver/common/set/string_set.go:53–58  ·  view source on GitHub ↗

Insert adds items to the set.

(items ...string)

Source from the content-addressed store, hash-verified

51
52// Insert adds items to the set.
53func (s StringSet) Insert(items ...string) StringSet {
54 for _, item := range items {
55 s[item] = empty{}
56 }
57 return s
58}
59
60// Delete removes all items from the set.
61func (s StringSet) Delete(items ...string) StringSet {

Callers 7

NewStringSetFunction · 0.95
StringKeySetFunction · 0.95
TestStringSetFunction · 0.95
AddOutConnectingListMethod · 0.45
AddInConnRecordMethod · 0.45
AddOutConnRecordMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestStringSetFunction · 0.76