Standard Library
Modules containing built-in functionality
The Pointless standard library contains useful built-in functions and
constants. This functionality is split into modules: globally
defined objects with definitions based around a common theme. For
instance, the Str module contains functions for working
with string values.
You can access a module's definitions the . operator.
For example, you would access the toLower function from
the Str module using Str.toLower. Some
commonly used standard library functions like
Str.chars are available as globals, and can be called
without specifying a module name.
Str.toLower("Pointless") -- Call the `toLower` function from the `Str` module
chars("Pointless") -- Call the global `char` function from the `Str` module
"pointless"
["P", "o", "i", "n", "t", "l", "e", "s", "s"]
See the language reference for tips on reading code examples.
Along with the language reference, the standard library documentation is an essential resource for understaning and using the Pointless language. Use the links below to view documentation for each module.
- Async Manage concurrent operations
- Bool Work with boolean values
- Char Manage concurrent operations
- Console Printing, prompting, and low-level console interaction
- Err Throw and catch recoverable errors
- Fs Read and manipulate files and directories
- List Work with lists (sequences of values)
- Math Mathematical functions and constants
- None Work with none values
- Obj Work with objects (key-value maps)
- Overloads Global wrapper functions combining similar type-specific functions
- Panic Terminate the program upon an unexpected program state
- Rand The Generate random values
- Re Use regular expressions to search and manipulate strings
- Ref Work with mutable state
- Set Work with sets (collections of unique values)
- Str Work with strings (pieces of text)
- Table Work with tables (data-frames)
- Test Write tests and verify program behavior