Next: , Previous: , Up: expander specs   [Index]


15.9.14 Enumeration type specifications

The following syntactic bindings are exported by the library (vicare expander).

Record Type: <enumeration-type-spec>

Name of type specifications for symbols enumerations.

Function: make-enumeration-type-spec symbols

Build and return a new instance of <enumeration-type-spec>. The argument symbols must be a non–empty proper list of symbols representing the items in the enumeration.

Function: enumeration-type-spec? obj

Return #t if obj is an instance of <enumeration-type-spec>; otherwise return #f.

Function: enumeration-type-spec.symbol* ots

Return a non–empty proper list of symbols representing the items in the enumeration.

Function: enumeration-type-spec.member? ots sym

Return #t if the symbol sym is a member of the enumeration ots; otherwise return #f.