MCPcopy 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
57func (st *set[T]) Add(value T) {
58 st.elements[value] = true
59}
60
61func (st *set[T]) Delete(value T) {
62 delete(st.elements, value)

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected