MCPcopy
hub / github.com/gogf/gf / NewIntSetFrom

Function NewIntSetFrom

container/gset/gset_int_set.go:30–34  ·  view source on GitHub ↗

NewIntSetFrom returns a new set from `items`.

(items []int, safe ...bool)

Source from the content-addressed store, hash-verified

28
29// NewIntSetFrom returns a new set from `items`.
30func NewIntSetFrom(items []int, safe ...bool) *IntSet {
31 return &IntSet{
32 TSet: NewTSetFrom(items, safe...),
33 }
34}
35
36// lazyInit lazily initializes the set.
37func (a *IntSet) lazyInit() {

Callers 14

TestNewIntSetFromFunction · 0.92
TestStrSet_SumFunction · 0.92
TestIntSet_JsonFunction · 0.92
ExampleNewFromFunction · 0.92
ExampleIntSet_AddFunction · 0.92
ExampleIntSet_ClearFunction · 0.92
ExampleIntSet_ComplementFunction · 0.92
ExampleIntSet_DiffFunction · 0.92

Calls 1

NewTSetFromFunction · 0.85

Tested by 14

TestNewIntSetFromFunction · 0.74
TestStrSet_SumFunction · 0.74
TestIntSet_JsonFunction · 0.74
ExampleNewFromFunction · 0.74
ExampleIntSet_AddFunction · 0.74
ExampleIntSet_ClearFunction · 0.74
ExampleIntSet_ComplementFunction · 0.74
ExampleIntSet_DiffFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…