def law_swap_balanced
import bendtorch-core@0.1.0.0/src/storage/refinement.bend as Refinementimport Base
import bendtorch-core@0.1.0.0/src/storage/model.bend as Model
406def law_swap_balanced(-T: Data, +d: Nat, array: Array<T>, +i: U32, new: T,
407 valid: Model.Balanced(T, d, array)) -> Model.Balanced(T, d, first(T, Array.swap(T, array, i, new))):
408 swap_balanced(T, d, array, i, new, swap(T, d, array, i, new, valid))
Uses (8)
Used by (0)
No other definition uses this definition.