This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 10/5/2026.

Bridge.define

~import std/bridge.define

Koru Standard Library: the `define` part of bridge.kz — install a subflow

bridge.define.kz · 1 tors

Koru Standard Library: the `define` part of bridge.kz — install a subflow declaration as a session verb (the REPL define). Joined via `~part define` in bridge.kz; merged into the bridge module at load. The vocabulary grows at runtime: `tor name { args }` + `name = <body>` becomes a verb callable on subsequent runs, held in the session's durable defined-flows table. The body's calls run through the same possession machinery as any dispatch, so a defined flow cannot reach beyond what the session holds. The agent hears "defined name" — or the parse error — fed back into the transcript (the honest-diagnostics rule applies here most of all: a wrong declaration needs a truthful error).