tomo/api
2024-08-18 23:59:13 -04:00
..
arrays.md Document array:first() 2024-08-18 22:32:14 -04:00
booleans.md Update docs 2024-08-18 19:34:07 -04:00
channels.md Update channel API to take a Where parameter 2024-08-18 23:59:13 -04:00
enums.md More docs 2024-08-18 21:19:22 -04:00
integers.md Add Int:clamped() and Num:clamped() 2024-08-18 23:20:54 -04:00
nums.md Add Int:clamped() and Num:clamped() 2024-08-18 23:20:54 -04:00
pointers.md Update docs 2024-08-18 21:24:21 -04:00
ranges.md API documentation 2024-08-18 18:23:32 -04:00
README.md Update index 2024-08-18 21:19:50 -04:00
sets.md Added a .length field to arrays/sets/tables, added a .max_size field to 2024-08-18 20:28:39 -04:00
structs.md More docs 2024-08-18 21:19:22 -04:00
tables.md Added a .length field to arrays/sets/tables, added a .max_size field to 2024-08-18 20:28:39 -04:00
text.md Update docs 2024-08-18 22:52:41 -04:00
threads.md Update API for give/get 2024-08-18 23:25:35 -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!")