This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
List.new
~import std/list.newKoru Standard Library: the `new` part of list.kz.
list.new.kz · 2 tors
Koru Standard Library: the `new` part of list.kz.
Joined via `~part new` in list.kz; merged into the list module at load.
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 1 state list!// Koru Standard Library: the `new` part of list.kz.
// Joined via `~part new` in list.kz; merged into the list module at load.
~[comptime|transform] pub tor new {
expr: Expression,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult// Concrete i64 constructor (runtime). `new(i64)` rewrites to this. Carries the
// <list!> ownership obligation.
~pub tor new-i64 {}
| list *List_i64<list!>
| err string