MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / GetItems

Method GetItems

structure/set/set.go:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (st *set[T]) GetItems() []T {
66 keys := make([]T, 0, len(st.elements))
67 for k := range st.elements {
68 keys = append(keys, k)
69 }
70 return keys
71}
72
73func (st *set[T]) Len() int {
74 return len(st.elements)

Callers 4

IsSubsetOfMethod · 0.95
UnionMethod · 0.95
DifferenceMethod · 0.95
SymmetricDifferenceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected