Interface: FunctionClauseDto
@kortexya/reasoninglayer / Functions / FunctionClauseDto
Interface: FunctionClauseDto
Defined in: src/types/functions.ts:83
A single clause in a function definition.
Remarks
Each clause has parameter patterns, an optional guard, and a body. Clauses are tried in order; the first whose patterns and guard match is evaluated.
Properties
body
body:
FunctionBodyDto
Defined in: src/types/functions.ts:85
Function body — what to compute.
guard?
optionalguard:FunctionGuardDto|null
Defined in: src/types/functions.ts:87
Optional guard condition.
parameters
parameters:
PatternDto[]
Defined in: src/types/functions.ts:89
Parameter patterns for this clause.