def bumped
import bendtorch-core@0.1.0.0/src/autograd/backward.bend as Backwardimport Base
90def bumped(slot: Maybe<&2, F32>, +rest: List<&2, Maybe<&2, F32>>, +contribution: F32,
91 rec: Unit -> List<&2, Maybe<&2, F32>>, same: Bool) -> List<&2, Maybe<&2, F32>>:
92 match same:
93 case True{}:
94 accumulate(slot, Some{contribution}) <> rest
95 case False{}:
96 slot <> rec(Unit{})