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

Function NewStringSet

p2pserver/common/set/string_set.go:34–38  ·  view source on GitHub ↗

NewStringSet creates a StringSet from a list of values.

(items ...string)

Source from the content-addressed store, hash-verified

32
33// NewStringSet creates a StringSet from a list of values.
34func NewStringSet(items ...string) StringSet {
35 ss := StringSet{}
36 ss.Insert(items...)
37 return ss
38}
39
40// StringKeySet creates a StringSet from a keys of a map[string](? extends interface{}).
41// If the value passed in is not actually a map, this will panic.

Callers 2

initMethod · 0.92
TestNewStringSetFunction · 0.85

Calls 1

InsertMethod · 0.95

Tested by 1

TestNewStringSetFunction · 0.68