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

Method Delete

p2pserver/common/set/string_set.go:61–66  ·  view source on GitHub ↗

Delete removes all items from the set.

(items ...string)

Source from the content-addressed store, hash-verified

59
60// Delete removes all items from the set.
61func (s StringSet) Delete(items ...string) StringSet {
62 for _, item := range items {
63 delete(s, item)
64 }
65 return s
66}
67
68// Has returns true if and only if item is contained in the set.
69func (s StringSet) Has(item string) bool {

Callers 2

TestStringSetFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestStringSetFunction · 0.76