- enum-type->enum-set enum-typeprocedure
Returns an enum set containing all the enums that belong to enum-type.
(define color-set (enum-type->enum-set color)) (define pizza-set (enum-type->enum-set pizza)) (every (lambda (enum) (enum-set-contains? pizza-set enum)) (enum-type-enums pizza)) ⇒ #t (enum-set-map->list enum-name color-set) ⇒ (red orange yellow green cyan blue violet)