Plan.oldest: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/plan.bend as Plan Lines 92-98 of cswap-bend-cli@0.1.0.0/daemon/plan.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/plan.bend&start_line=92&end_line=98 import Base import cswap-bend-cli@0.1.0.0/policy/types.bend as T import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G # The due candidate with the oldest measurement (the first wins ties). def oldest(+es: List<&2, G.Ent>, +us: List<&2, T.Usage>, +best: Maybe<&2, G.Ent>) -> Maybe<&2, G.Ent>: match es: case Nil{}: best case Con{e, t}: oldest(t, us, older(e, best, us)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/gather.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/plan.bend&name=older https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=Usage