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

Method ToSlice

pkg/set/intset.go:30–32  ·  view source on GitHub ↗

ToSlice - returns IntSet as int slice.

()

Source from the content-addressed store, hash-verified

28
29// ToSlice - returns IntSet as int slice.
30func (set IntSet) ToSlice() []int {
31 return ToSliceOrdered(Set[int](set))
32}
33
34// IsEmpty - returns whether the set is empty or not.
35func (set IntSet) IsEmpty() bool {

Callers 7

TestIntSetMsgpRoundtripFunction · 0.95
TestIntSetMsgpBinaryFunction · 0.95
TestMsgpSortedBehaviorFunction · 0.95
MarshalJSONMethod · 0.95
StringMethod · 0.95

Calls 1

ToSliceOrderedFunction · 0.85

Tested by 5

TestIntSetMsgpRoundtripFunction · 0.76
TestIntSetMsgpBinaryFunction · 0.76
TestMsgpSortedBehaviorFunction · 0.76