Skip to content

Interface: FunctionClauseDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FunctionClauseDto

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

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:169

Function body — what to compute.


optional guard?: FunctionGuardDto | null

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

Optional guard condition.


parameters: PatternDto[]

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

Parameter patterns for this clause.