1.3 KiB
1.3 KiB
Documentation
This is an overview of the documentation on Tomo.
Topics
A few topics that are documented:
Types
Information about Tomo's built-in types can be found here:
- Arrays
- Booleans
- Channels
- Enums
- Floating point numbers
- Integer Ranges
- Integers
- Languages
- 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!")