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

Method In

structure/set/set.go:77–82  ·  view source on GitHub ↗
(value T)

Source from the content-addressed store, hash-verified

75}
76
77func (st *set[T]) In(value T) bool {
78 if _, in := st.elements[value]; in {
79 return true
80 }
81 return false
82}
83
84func (st *set[T]) IsSubsetOf(superSet Set[T]) bool {
85 if st.Len() > superSet.Len() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected