Core library

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.

PageContents
ContainersVector, HashMap, HashSet, slices and the Hash interface.
StringThe string type and its methods.
NumbersBig numbers, byte and C character types, and the ^^ operator.
FormattingThe f-string lowering target and formatting buffers.
Ranges and orderingRange types and the Ordering enum.
Memory and allocationAllocator interfaces, scopes and raw allocation.
Errors and panicsPanic results, crash and assertion support.
CoroutinesGenerators, futures and suspension.
IntrinsicsCompiler builtins (__builtin_*) and target information.
MacrosMacros declared in the builtin library.
PreludeWhat every file sees without an import.

Generated from Kairo source, Apache-2.0 WITH AdditionRef-Kairo-Runtime-exception.