Reference
std/fixedarray
std/fixedarray
Helpers over FixedArray, an array whose length is part of its type.
narra
import * as FixedArrays from "std/fixedarray"
The guide teaches it in chapter 17, Proofs and compile-time constants.
This page is generated by scripts/std/generate.nra from narrac query --json interface std/fixedarray. Do not edit it.
Functions
get
narra
export function get<T, N>(values: FixedArray<T, N>, index: int): Option<T> from values
Effects: none.
length
narra
export function length<T, N>(_values: FixedArray<T, N>): int
Effects: none.