Skip to content
Konjure / spatial intelligence

print

← Builtin reference

Appends a bounded textual rendering of a value to the machine log without external I/O.

Signature

func print(value: T) -> Unit

Rendering must fit the machine string bound. Logs are a bounded ring buffer: when full, the oldest retained line is discarded, and no external I/O occurs.

Parameters

value: T
Any checked value whose rendered log text fits the machine string limit.

Returns

Unit

Unit after the bounded log update.

Examples

Record a value

print writes the interpreter log.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
hello

Rust definition

Rust interpreter builtin dispatch; polymorphic calls and function values are checked from their concrete context.

See also