Companion

object Companion

Functions

Link copied to clipboard
fun functionMeta(): A_Type

Answer the metatype for all function types. This is just an instance type on the most general type.

Link copied to clipboard
fun functionType(    argTypes: A_Tuple,     returnType: A_Type,     exceptionSet: A_Set = emptySet): A_Type

Answer a new function type whose instances accept arguments whose types conform to the corresponding entries in the provided tuple of types, produce values that conform to the return type, and raise no checked exceptions.

Link copied to clipboard
fun functionTypeFromArgumentTupleType(    argsTupleType: A_Type,     returnType: A_Type?,     exceptionSet: A_Set): A_Type

Answer a new function type whose instances accept arguments which, if collected in a tuple, match the specified tuple type. The instances of this function type should also produce values that conform to the return type, and may only raise checked exceptions whose instances are subtypes of one or more members of the supplied exception set.

Link copied to clipboard
fun functionTypeReturning(returnType: A_Type): A_Type

Answer a new function type that doesn't specify how many arguments its conforming functions have. This is a useful kind of function type for discussing things like a general function invocation operation.

Link copied to clipboard
fun mostGeneralFunctionType(): A_Type

Answer the top (i.e., most general) function type.