Safe.key2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/policy/safe.bend as Safe Lines 89-96 of cswap-bend-cli@0.1.0.0/policy/safe.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/policy/safe.bend&start_line=89&end_line=96 import Base import cswap-bend-cli@0.1.0.0/policy/types.bend as T def key2(+algo: Algo, +slot: Nat, +h: Nat) -> Nat: match algo: case ARoundRobin{}: slot case ADrainFirst{}: h case o: Nat.sub(T.full(), h) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/safe.bend&name=Algo https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=full