Provides an inline-allocated list which statically tracks its length, and type-based integer/boolean representations which don't require (additional) bounds for operators.
Example
Splitting and recombining
This example shows how NLists can be split and recombined in const,
even if the length is generic,
so long as the length is known to be greater than the split index.
use ;
const LIST: > = transform;
assert_eq!;
type SplitIndex = Peano!;
const
// Adds 100 to all elemenst of an NList
const
Crate features
"alloc"(enabled by default): enables methods that take or returnVec
No-std support
nlist is #![no_std], it can be used anywhere Rust can be used.
Minimum Supported Rust Version
nlist requires Rust 1.83.0.