MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Len

Method Len

structure/set/set.go:73–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (st *set[T]) Len() int {
74 return len(st.elements)
75}
76
77func (st *set[T]) In(value T) bool {
78 if _, in := st.elements[value]; in {

Callers 4

IsSubsetOfMethod · 0.95
IsProperSubsetOfMethod · 0.95
IsProperSupersetOfMethod · 0.95
IntersectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected