This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
List.len
~import std/list.lenKoru Standard Library: the `len` part of list.kz.
list.len.kz · 2 tors
Koru Standard Library: the `len` part of list.kz.
Joined via `~part len` in list.kz; merged into the list module at load.
Current length as a scalar. (The `xs.len` expression form rides a separate
bridge; this event is the plain call form.)
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 `len` part of list.kz.
// Joined via `~part len` in list.kz; merged into the list module at load.
//
// Current length as a scalar. (The `xs.len` expression form rides a separate
// bridge; this event is the plain call form.)
~[comptime|transform] pub tor len {
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
allocator: std.mem.Allocator
} -> SiteResult~pub tor len-i64 { xs: *List_i64<list> } -> usize