Sim.step: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/sim.bend as Sim Lines 21-25 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=21&end_line=25 import Base import bend-lawful-stdlib@0.1.0.0/src/class.bend as C def step(~P: Data, ~g: C.Group
, ~F: P -> P, s: State
) -> State
: match s: case State{+x, v}: +w = C.Group.add(P, g, v, F(x)) State{C.Group.add(P, g, x, w), w} Uses (3): 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/class.bend&name=Group.add https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/sim.bend&name=State