Interface: FunctionClauseDto
@kortexya/reasoninglayer / FunctionClauseDto
Interface: FunctionClauseDto
Section titled “Interface: FunctionClauseDto”Defined in: src/types/functions.ts:159
A single clause in a function definition.
Remarks
Section titled “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
Section titled “Properties”body:
FunctionBodyDto
Defined in: src/types/functions.ts:161
Function body — what to compute.
guard?
Section titled “guard?”
optionalguard?:FunctionGuardDto|null
Defined in: src/types/functions.ts:163
Optional guard condition.
parameters
Section titled “parameters”parameters:
PatternDto[]
Defined in: src/types/functions.ts:165
Parameter patterns for this clause.