Companion

object Companion

Functions

Link copied to clipboard
fun fromNormalizedSet(normalizedSet: A_Set): A_Type

Construct an enumeration type from a set with at least two instances. The set must have already been normalized, such that at most one of the elements is itself a type.

Link copied to clipboard
fun getInstances(self: AvailObject): A_Set

Extract my set of instances. If any object is itself a type then all of its subtypes are automatically instances, but they're not returned by this method. Also, any object that's a type and has a supertype in this set will have been removed during creation of this enumeration.

Properties

Link copied to clipboard
val booleanType: A_Type

Avail's boolean type, the equivalent of Java's primitive boolean pseudo-type, similar to Java's boxed Boolean class.

Link copied to clipboard
val falseType: A_Type

The type whose only instance is the value false.

Link copied to clipboard
val trueType: A_Type

The type whose only instance is the value true.