chickadee » srfi-209 » enum-name->ordinal

enum-name->ordinal enum-set symbolprocedure

Returns the ordinal of the enum belonging to enum-type whose name is symbol. It is an error if there is no such enum.

(enum-name->ordinal color 'blue) ⇒ 5