This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
List.get
~import std/list.getKoru Standard Library: the `get` part of list.kz.
list.get.kz · 2 tors
Koru Standard Library: the `get` part of list.kz.
Joined via `~part get` in list.kz; merged into the list module at load.
Random access by index. <list> borrow — read, list untouched. `out-of-bounds`
when i is past the end.
Phantom lifecycles
Derived from the phantom labels in the declarations below — state! issues an
obligation the compiler will chase, !state discharges it, a bare state holds it without moving it. Nothing here is hand-drawn.
List_i64 carries the label <list> with no obligation attached — a dimension, not a lifecycle.
// Koru Standard Library: the `get` part of list.kz.
// Joined via `~part get` in list.kz; merged into the list module at load.
//
// Random access by index. <list> borrow — read, list untouched. `out-of-bounds`
// when i is past the end.
~[comptime|transform] pub tor get {
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
allocator: std.mem.Allocator
} -> SiteResult~pub tor get-i64 { xs: *List_i64<list>, i: usize }
| item i64
| out-of-bounds