def shift

bendtorch-core@0.1.0.0 · src/autograd/reduce_fiber_proof.bend:557

import bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof.bend as ReduceFiberProof
import Base

557# Moving the base moves every offset: base + xs.
558def shift(+base: Nat, xs: List<&2, Nat>) -> List<&2, Nat>:
559  match xs:
560    case Nil{}:
561      Nil{}
562    case x <> rest:
563      Nat.add(base, x) <> shift(base, rest)

Uses (3)

Used by (6)