Skip to content
Try Kata

Library API

Look up a module, then its types and operations. Signatures come from parsed declarations; descriptions and runnable examples come from source docstrings.

ModuleContents
coreFundamental types and protocols, re-exported from their defining modules.
core.convByte conversion and hashing interfaces.
core.indexingIndexed access protocols behind value[key] and value[key] = item.
core.iterThe iterator interfaces used by for loops.
core.lifecycleLifecycle protocol declarations. These interfaces do not by themselves establish ownership or deep-copy guarantees.
core.optOptional values: a payload or an explicit absence.
core.resResults for recoverable errors, with separate success and error payload types.
dsaCollections: arrays, maps, their iterators, and map slots.
dsa.arrGrowable arrays with checked indexing, optional access, and iteration.
dsa.mapHash maps with optional lookup, indexed access, removal, and entry iteration.
memMemory primitives and allocation helpers. Prefer Arr and Map for ordinary collections.
mem.allocatorAllocation interface and the interpreter-backed heap allocator.
mem.bufA typed allocation with capacity, underneath the array’s live-element count.
mem.ptrTyped access to a raw allocation. These wrappers do not establish ownership.
nativeFunctions available in every program: output, type inspection, and explicit failure.
native.BinNative methods on Bin.
native.BoolNative methods on Bool.
native.ByteNative methods on Byte.
native.CharNative methods on Char.
native.F16Native methods on F16.
native.F32Native methods on F32.
native.F64Native methods on F64.
native.FloatNative methods on Float.
native.I128Native methods on I128.
native.I16Native methods on I16.
native.I32Native methods on I32.
native.I64Native methods on I64.
native.I8Native methods on I8.
native.IntNative methods on Int.
native.IszNative methods on Isz.
native.memRaw allocation operations. Each call requires an unsafe block.
native.opsThe interpreter’s native implementations of arithmetic, comparison, and truth testing.
native.StrNative methods on Str.
native.TupNative methods on Tup.
native.U128Native methods on U128.
native.U16Native methods on U16.
native.U32Native methods on U32.
native.U64Native methods on U64.
native.U8Native methods on U8.
native.UszNative methods on Usz.
preludeThe 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