def ar.reset.put
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1858def ar.reset.put(vm: Vm, old: Array<Th>, spare: Array<Th>, +cap: U32, +init: List<&2, Maybe<&2, U32>>) -> Ar:
1859 Vm{+ths, best} = vm
1860 +count = U32.from_nat(List.length(&2, Th, ths))
1861 ar.reset.size(U32.is_le(count, cap), ths, best, old, spare, count, cap, init)