def shift
import bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof.bend as ReduceFiberProofimport 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)
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:rest_at
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:kept_shift
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:masked_base
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:shift_append
- bendtorch-core@0.1.0.0/src/autograd/reduce_fiber_proof:shift_shift
- …