Skip to content

Class: VariablePattern

Represents a pattern that matches any value and binds it to a variable.

Example

ts
map (\x -> x + 1)

Constructors

Constructor

new VariablePattern(name, loc?): VariablePattern

Parameters

ParameterType
nameSymbolPrimitive
loc?SourceLocation

Returns

VariablePattern

Overrides

ASTNode.constructor