.. | ||
arrays.md | ||
booleans.md | ||
channels.md | ||
enums.md | ||
integers.md | ||
nums.md | ||
pointers.md | ||
ranges.md | ||
README.md | ||
sets.md | ||
structs.md | ||
tables.md | ||
text.md | ||
threads.md |
API
Tomo has a small number of built-in functions and bunch of types.
Types
- Arrays
- Booleans
- Channels
- Enums
- Floating point numbers
- Integer Ranges
- Integers
- Sets
- Structs
- Tables
- Text
- Threads
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!")