LYR-RT0003
an index or a range out of bounds
An index is negative or not below the length, a view's range does not satisfy 0 <= low <= high <= length, or a string's byte index or range does not fall on a character's boundary. Copying into a shorter view panics the same way.
Program
fn at(xs: int[], i: int): int {
return xs[i];
}
fn main(): void {
assert(at([1, 2, 3], 3) == 0);
}