Library API
Look up a module, then its types and operations. Signatures come from parsed declarations; descriptions and runnable examples come from source docstrings.
| Module | Contents |
|---|---|
core | Fundamental types and protocols, re-exported from their defining modules. |
core.conv | Byte conversion and hashing interfaces. |
core.indexing | Indexed access protocols behind value[key] and value[key] = item. |
core.iter | The iterator interfaces used by for loops. |
core.lifecycle | Lifecycle protocol declarations. These interfaces do not by themselves establish ownership or deep-copy guarantees. |
core.opt | Optional values: a payload or an explicit absence. |
core.res | Results for recoverable errors, with separate success and error payload types. |
dsa | Collections: arrays, maps, their iterators, and map slots. |
dsa.arr | Growable arrays with checked indexing, optional access, and iteration. |
dsa.map | Hash maps with optional lookup, indexed access, removal, and entry iteration. |
mem | Memory primitives and allocation helpers. Prefer Arr and Map for ordinary collections. |
mem.allocator | Allocation interface and the interpreter-backed heap allocator. |
mem.buf | A typed allocation with capacity, underneath the array’s live-element count. |
mem.ptr | Typed access to a raw allocation. These wrappers do not establish ownership. |
native | Functions available in every program: output, type inspection, and explicit failure. |
native.Bin | Native methods on Bin. |
native.Bool | Native methods on Bool. |
native.Byte | Native methods on Byte. |
native.Char | Native methods on Char. |
native.F16 | Native methods on F16. |
native.F32 | Native methods on F32. |
native.F64 | Native methods on F64. |
native.Float | Native methods on Float. |
native.I128 | Native methods on I128. |
native.I16 | Native methods on I16. |
native.I32 | Native methods on I32. |
native.I64 | Native methods on I64. |
native.I8 | Native methods on I8. |
native.Int | Native methods on Int. |
native.Isz | Native methods on Isz. |
native.mem | Raw allocation operations. Each call requires an unsafe block. |
native.ops | The interpreter’s native implementations of arithmetic, comparison, and truth testing. |
native.Str | Native methods on Str. |
native.Tup | Native methods on Tup. |
native.U128 | Native methods on U128. |
native.U16 | Native methods on U16. |
native.U32 | Native methods on U32. |
native.U64 | Native methods on U64. |
native.U8 | Native methods on U8. |
native.Usz | Native methods on Usz. |
prelude | The standard prelude, loaded before user code. Core protocols and common collections are available without an explicit import. |
Language reference · Write and check docstrings · Download the JSON index