def Arrays.nth

bend-osdev-array@0.1.0.1 · array.bend:57

import bend-osdev-array@0.1.0.1/array.bend as Array
import Base

57def Arrays.nth(-T: Data, xs: List<&2, T>, k: Nat, fill: T) -> T:
58  Arrays.nth.or(T, List.get(&2, T, xs, k), fill)

Uses (4)

Used by (36)