chickadee » srfi-209 » enum-set-count

enum-set-count pred enum-setprocedure

Returns an exact integer, the number of elements of enum-set that satisfy pred.

(enum-set-count (lambda (e) (> (enum-ordinal e) 3))
                color-set)
 ⇒ 3