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

Built-in Functions

I/O functions

shout(value)

Prints value to the console.

Example:

shout("Hello, World!")

read_line(prompt)

Prompts the user and reads a single line from standard input. Returns a string with the line.

Example:

make name get read_line("Enter name: ")
shout("Hello {name}")

Introspection

typeof(value)

Returns the runtime type of value as a string: "number", "string", "boolean", "array", or "null".

Example:

make foo get 42
make t get typeof(foo)
shout("foo is a {t}")

to_string(value)

Converts the given value to its string representation.

Example:

make x get 42
make s get to_string(x)
shout(s)