type-union

Returns the union of two or more types.  The instances of the returned type are the instances of all the types.  The type returned is not instantiable.

define constant $my-enumerated-type =
type-union(singleton(#"one"),
singleton(#"two"),
singleton(#"three"),
singleton(#"four"),
singleton(#"five"))

Exported from

Arguments

#rest typesInstances of <object>.

Values

typeAn instance of <type>.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of all Dylan objects.
The class of all types, including classes and other types.