Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Output

Use print(value); to write a value followed by a newline. The CLI provides print by default and sends its output to stdout.

print(42);
<- 99;

oryn run prints 42. The value 99 is the file’s return value. Applications that embed Oryn choose which native functions to make available and where their output goes. Native function signatures specify how many arguments the function takes and which types it accepts. The compiler checks calls against those signatures. print accepts one value of any supported type.