one-of

Creates a class that is one of the supplied arguments.  This function takes any number of objects, and returns the type that is the type-union of the singletons of those objects.  For example, the expression

one-of(#"foo", #"bar", #"baz")

is equivalent to

type-union(singleton(#"foo"), singleton(#"bar"), singleton(#"baz"))

Exported from

Arguments

#rest thingsInstances of <object>.  The allowable classes.

Values

resAn instance of <type>.  The resulting type from the supplied classes.
Returns the union of two or more types.
Ultimately, there will be several, more logically separate libraries that extend Dylan or provide an application framework for users.
The common-dylan module.
Miscellaneous extensions to the Dylan language.
The class of all Dylan objects.
The class of all types, including classes and other types.