Skip to content

Interface: FunctionClauseDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FunctionClauseDto

Defined in: src/types/functions.ts:159

A single clause in a function definition.

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.

body: FunctionBodyDto

Defined in: src/types/functions.ts:161

Function body — what to compute.


optional guard?: FunctionGuardDto | null

Defined in: src/types/functions.ts:163

Optional guard condition.


parameters: PatternDto[]

Defined in: src/types/functions.ts:165

Parameter patterns for this clause.