def tries.bump.got

bend-kit-runner@0.13.0.1 · runner.bend:160

import bend-kit-runner@0.13.0.1/runner.bend as Runner
import Base
import bend-kit-collections@0.1.4.1/omap.bend as O

160def tries.bump.got(m: Maybe<&2, Try>, ts: Tries(), +i: Nat) -> Tries():
161  match m:
162    case None{}:
163      ts
164    case Some{Try{f, st}}:
165      O.OMap.put(~Nat, ~Try, ~Nat.cmp, ts, i, Try{1n+f, st})

Uses (6)

Used by (1)