Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 639 Bytes

set-has-any.md

File metadata and controls

21 lines (14 loc) · 639 Bytes

set-has-any?

This function returns true if at least one of the given values occur in the given set. See also set-has? for checking if all of the given values occur in the set.

Examples

All of the examples assume that $set is a set with {"a", "b", "c"}.

  • (set-has-any? $set "")false
  • (set-has-any? $set "b")true
  • (set-has-any? $set "b" "c")true
  • (set-has-any? $set "b" "d")true
  • (set-has-any? $set "d" ["x" "y"])false

Forms

(set-has-any? base:set value:any+)bool

This form returns true if the set contains at least one of the given values.