Next: , Previous: , Up: srfi sets-and-bags   [Index]


2.37.3 Predicates

Function: set? obj
Function: bag? obj

Return #t if obj is a set or bag; return #f otherwise.

Function: set-contains? set element
Function: bag-contains? bag element

Return #t if element is a member of set or bag and #f otherwise.

Function: set-empty? set
Function: bag-empty? bag

Return #t if set or bag has no elements and #f otherwise.

Function: set-disjoint? set1 set2
Function: bag-disjoint? bag1 bag2

Return #t if set1 and set2, or bag1 and bag2, have no elements in common; return #f otherwise.