Following functions and modules are provided as part of the standard library.
Functions & Modules¶
Data Structures¶
Modules¶
- Seq - contains functions for manipulating sequences
- Set - contains functions for manipulating sets
- Dict - contains functions for manipulating dictionaries
- Tuple - helper functions for analyzing/manipulating tuples
- STM - Software Transactional Memory
Asynchronous Operation¶
Functions¶
- async - Executes the lambda asynchronously
- drop - Execute the callback without waiting on its result
- never - Function that is never completed
- sleep - Suspends computation by specified duration
- timeout - Either the provided value is computed by the specified timeout, or a
:timeout
exception is raised
Type Manipulations¶
Modules¶
- Types - contains functions for checking a type of a value
Functions¶
- str - Converts any value to its string representation
- int - Converts any number to to int
- float - Converts any value to float
- ord - Return byte representation of an ASCII character
Control Flow¶
Functions¶
Input/Output¶
Modules¶
- IO - standard input/output actions
- File - contains functions for manipulating files
- http\Client - simple HTTP client
- http\Server Java - Java interop functions
- socket\tcp\Client - TCP Socket Client
- socket\tcp\Server - TCP Socket Server
- socket\tcp\Connection - Socket Connection handling - reading/writing to sockets
- terminal\Colors - Terminal colors
- terminal\colors\Foreground - Terminal colors - foreground
- terminal\colors\Background - Terminal colors - foreground
Interoperability¶
Modules¶
- java\Types - Java types conversions
- Java - Java interoperability interface
- System - execute external system programs
Functions¶
- eval - Dynamically evaluates the string as a Yona express
Miscellaneous¶
Modules¶
- Transducers - contains reducer transformers, used for example by generators
- context\Local - utilities for implementing custom context managers, see resource management for details
- JSON - JSON parser and generator functions
- Regexp - Regular Expressions
- Stopwatch - Simple benchmarking utilities
- Exception - Exception handling related utilities
- Random - Random number generation
- Scheduler - Simple task scheduling
Functions¶
- identity - Returns the value provided to it as an argument, without any modification
Time & Date¶
Modules¶
- Time - Time related functions
Last update: August 25, 2021