Core library
The core library (Lib/builtin) is the implicit prelude: every file sees these types, functions and macros without an import. The compiler lowers [T], T?, ranges, f-strings, panic results and generators to the declarations documented here.
| Page | Contents |
|---|---|
| Containers | Vector, HashMap, HashSet, slices and the Hash interface. |
| String | The string type and its methods. |
| Numbers | Big numbers, byte and C character types, and the ^^ operator. |
| Formatting | The f-string lowering target and formatting buffers. |
| Ranges and ordering | Range types and the Ordering enum. |
| Memory and allocation | Allocator interfaces, scopes and raw allocation. |
| Errors and panics | Panic results, crash and assertion support. |
| Coroutines | Generators, futures and suspension. |
| Intrinsics | Compiler builtins (__builtin_*) and target information. |
| Macros | Macros declared in the builtin library. |
| Prelude | What every file sees without an import. |
Generated from Kairo source, Apache-2.0 WITH AdditionRef-Kairo-Runtime-exception.