[r6rs-discuss] Where is the type predicate for enumerations?
aghuloum at cs.indiana.edu
Thu Aug 7 23:10:53 EDT 2008
On Aug 7, 2008, at 4:35 PM, Göran Weinholt wrote:
> first time poster, long time reader. I just noticed that there is no
> `enum-set?' function. Is this an error in R6RS, or how do I check if
> something is an enumeration?
I think it's an error in R6RS. Until it's fixed (or not), you can
(define (enum-set? x)
(guard (con [else #f])
(enum-set-subset? (make-enumeration '()) x)))
and ask your implementor to export enum-set?.
More information about the r6rs-discuss