chickadee » srfi-209 » enum-set-intersection!

enum-set-intersection! enum-set-1 enum-set-2procedure

Returns an enum set containing all the elements that appear in both enum-set-1 and enum-set-2. It is an error if all the elements of the result do not belong to the same enum type.

(enum-set-empty? (enum-set-intersection! reddish ~reddish))
 ⇒ #t