chickadee » slset » slset-contains?

slset-contains? LIST SYMprocedure

Returns #t if SYM occurs in LIST, #f otherwise. This is mostly provided for convenience, as it does not provide any performance improvement over using memq directly - its runtime is O(n).

See reified-slsets below for O(1) membership testing.

(slset-contains? '(a b c d a c e) 'a) => #t
(slset-contains? '(a b c d a c e) 'd) => #t
(slset-contains? '(a b c d a c e) 'i) => #f