Commands.step: def of bend-kit-commands@0.4.0.0 Import: import bend-kit-commands@0.4.0.0/commands.bend as Commands Lines 61-71 of bend-kit-commands@0.4.0.0/commands.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-commands@0.4.0.0/commands.bend&start_line=61&end_line=71 import Base # One command, given the record that the store holds for its id and the domain state s. # dup_p and dup_r copy a payload and a result: a new command's payload goes to decide and to the record. def step( ~S: Type, ~P: Type, ~R: Type, ~E: Type, ~eq: P -> P -> Bool, ~dup_p: P -> P & P, ~dup_r: R -> R & R, ~decide: S -> P -> Decision, found: Maybe>, s: S, p: P, at: U32 ) -> Step: match found: case None{}: fresh(~S, ~P, ~R, ~E, ~dup_r, ~decide, dup_p(p), s, at) case Some{Record{q, o, t}}: Keep{replayed(R, eq(q, p), o)} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Decision https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Record https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=Step https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=fresh https://jend.leeeet.dev/definition.txt?path=bend-kit-commands@0.4.0.0/commands.bend&name=replayed