def active_due
cswap-bend-cli@0.1.0.0 · daemon/plan.bend:62
import cswap-bend-cli@0.1.0.0/daemon/plan.bend as Plan
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
62
63def active_due(+es: List<&2, G.Ent>, +us: List<&2, T.Usage>, +active: Maybe<&2, String>, +now: Nat, +cfg: T.Config) -> List<&2, G.Ent>:
64 match es:
65 case Nil{}:
66 []
67 case Con{e, t}:
68 sel_e(is_active(e, active) && eligible(e) && due(e, us, now, cfg), [e], active_due(t, us, active, now, cfg))