FunctionType

gapt.expr.ty.FunctionType
object FunctionType

Attributes

Source
FunctionType.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(to: Ty, from: Seq[Ty]): Ty

Creates a function type.

Creates a function type.

Value parameters

from

The argument types of the newly created function type.

to

The return type of the newly created function type.

Attributes

Returns

A type of the form from(0) -> ( from(1) -> ( ... (from(n) -> to)...)), where n is the length of the sequence from

Source
FunctionType.scala
def unapply(ty: Ty): Option[(Ty, List[Ty])]

Interprets the given type as function type.

Interprets the given type as function type.

Value parameters

ty

The type to be viewed as a function type.

Attributes

Returns

Returns Some( (from, to) ) such that ty = FunctionType(to, from).

Source
FunctionType.scala