def lib.put
import ezx@1.11.0.0/src/init/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
185# the library when it is laid out, ahead of the rest
186def lib.put(lays: Bool, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
187 match lays:
188 case True{}:
189 P.Write{lib.file(), lib()} <> rest
190 case False{}:
191 rest