Skip to content

Class: ConsPattern ​

Represents a pattern matching the head and tail of a list (x:xs).

Constructors ​

Constructor ​

new ConsPattern(head, tail, loc?): ConsPattern

Parameters ​

ParameterType
headPattern
tailPattern
loc?SourceLocation

Returns ​

ConsPattern

Overrides ​

ASTNode.constructor