def keep.effects
import ezx@1.11.0.0/src/ws/relock.bend as Relockimport Base
import ezx@1.11.0.0/src/lock/plan.bend as LP
150# every effect of the command at the root, so
151def keep.effects(+old: String, es: List<&2, LP.Effect>) -> List<&2, LP.Effect>:
152 match es:
153 case []:
154 []
155 case hd <> tl:
156 keep.effect(old, hd) <> keep.effects(old, tl)