def pick.hr
import cswap-bend-cli@0.1.0.0/policy/pick.bend as Pickimport Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
372# Most headroom first, then earliest time, then sequence order.
373def pick.hr(+as: List<&2, T.Account>, +rk: Rk, +f: Fam) -> Pm:
374 pick.hr.at(maxall(as, rk, f, 0n), as, rk, f)