Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Go
/ Add
Method
Add
structure/set/set.go:57–59 ·
view source on GitHub ↗
(value T)
Source
from the content-addressed store, hash-verified
55
}
56
57
func
(st *set[T]) Add(value T) {
58
st.elements[value] = true
59
}
60
61
func
(st *set[T]) Delete(value T) {
62
delete(st.elements, value)
Callers
1
New
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected