panic : String -> a
Abort the program with a message — an unrecoverable error (unlike the catchable Throw effect). Backs c[i] / index when the index is out of range.
import nécessaire.panic : String -> a
Abort the program with a message — an unrecoverable error (unlike the catchable Throw effect). Backs c[i] / index when the index is out of range.
listAt : List a -> Nat -> Maybe a
listSetAt : List a -> Nat -> a -> List a
goListSet : List a -> List a -> Nat -> a -> List a
(!) : List a -> Nat -> Maybe a
Safe subscript xs[i]? — Nothing if i is out of range.
index : List a -> Nat -> a
Direct subscript xs[i] — panics if i is out of range.
set : List a -> Nat -> a -> List a
set xs i v — a new list with position i set to v (unchanged if i is out of range). The notation xs { [i] := v } is equivalent (kept — decision Q3 2026-07-02 — but set is the form to teach and document).