Skip to content

Class: Otherwise

Otherwise used as the default case in GuardBody

Example

ts
f x
 | x == 2 = 16
 | otherwise = x * 8

Constructors

Constructor

new Otherwise(loc?): Otherwise

Parameters

ParameterType
loc?SourceLocation

Returns

Otherwise

Inherited from

ASTNode.constructor