Refinement.swap_go_balanced: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinement Lines 198-204 of bendtorch-core@0.1.0.0/src/storage/refinement.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&start_line=198&end_line=204 import Base import bendtorch-core@0.1.0.0/src/storage/model.bend as Model def swap_go_balanced(-T: Data, -d: Nat, -original: Array, -n: U32, -i: U32, -z: Bool, -new: T, cert: Swap) -> Model.Balanced(T, d, first(T, Array.swap.go(T, original, n, i, new, z))): match cert: case Swap{array, old, equal, written, observed, valid}: %equal : Model.Balanced(T, d, first(T, _)) valid Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.swap.go https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/model.bend&name=Balanced https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=Swap https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/storage/refinement.bend&name=first