Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 611 Bytes

set-has.md

File metadata and controls

21 lines (14 loc) · 611 Bytes

set-has?

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

Examples

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

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

Forms

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

This form returns true if the set contains all of the given values.