Skip to content

Class: Application

Represents the application of a function to an argument.

Example

ts
map (*2) [1..5]

Constructors

Constructor

new Application(functionExpr, parameter, loc?): Application

Parameters

ParameterType
functionExprExpression
parameterExpression
loc?SourceLocation

Returns

Application

Overrides

ASTNode.constructor

Methods

getMetadata()

getMetadata<T>(key): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring

Returns

T

Inherited from

ASTNode.getMetadata


hasMetadata()

hasMetadata(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Inherited from

ASTNode.hasMetadata


setMetadata()

setMetadata(key, value): void

Parameters

ParameterType
keystring
valueany

Returns

void

Inherited from

ASTNode.setMetadata