Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
73
func
(st *set[T]) Len() int {
74
return
len(st.elements)
75
}
76
77
func
(st *set[T]) In(value T) bool {
78
if
_, in := st.elements[value]; in {
Callers
4
IsSubsetOf
Method · 0.95
IsProperSubsetOf
Method · 0.95
IsProperSupersetOf
Method · 0.95
Intersection
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected