tomo/api
2024-08-18 19:45:04 -04:00
..
arrays.md Update array docs 2024-08-18 19:45:04 -04:00
booleans.md Update docs 2024-08-18 19:34:07 -04:00
channels.md API documentation 2024-08-18 18:23:32 -04:00
integers.md Add API docs 2024-08-18 16:51:25 -04:00
nums.md Add API docs 2024-08-18 16:51:25 -04:00
ranges.md API documentation 2024-08-18 18:23:32 -04:00
README.md Add README for API 2024-08-18 18:30:40 -04:00
sets.md API documentation 2024-08-18 18:23:32 -04:00
tables.md API documentation 2024-08-18 18:23:32 -04:00
text.md API documentation 2024-08-18 18:23:32 -04:00
threads.md API documentation 2024-08-18 18:23:32 -04:00

API

Tomo has a small number of built-in functions and bunch of types.

Types

Built-in Functions

say

Description:
Prints a message to the console.

Usage:

say(text:Text) -> Void

Parameters:

  • text: The text to print.

Returns:
Nothing.

Example:

say("Hello world!")

fail

Description:
Prints a message to the console, aborts the program, and prints a stack trace.

Usage:

fail(message:Text) -> Abort

Parameters:

  • message: The error message to print.

Returns:
Nothing, aborts the program.

Example:

fail("Oh no!")