Appends a bounded textual rendering of a value to the machine log without external I/O.
Signature
func print(value: T) -> UnitRendering 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
UnitUnit after the bounded log update.
Examples
Record a value
print writes the interpreter log.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
hello
Rust definition
Rust interpreter builtin dispatch; polymorphic calls and function values are checked from their concrete context.
View Rust documentation →Support: runtime