Sim.rewind: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/sim.bend as Sim Lines 56-61 of bend-lawful-stdlib@0.1.0.0/src/sim.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/sim.bend&start_line=56&end_line=61 import Base import bend-lawful-stdlib@0.1.0.0/src/class.bend as C def rewind(~P: Data, ~g: C.Group
, ~F: P -> P, n: Nat, s: State
) -> State
: match n: case 0n: s case 1n+k: rewind(~P, ~g, ~F, k, back(~P, ~g, ~F, s)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/class.bend&name=Group https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/sim.bend&name=State https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/sim.bend&name=back