def ledger.of
import ezx@1.11.0.0/src/relock/relock.bend as Relockimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
21# what ez.toml holds once a plan has run, when it held `was` before
22def ledger.of(wrote: P.Wrote, was: Maybe<&2, String>) -> Maybe<&2, String>:
23 match wrote:
24 case P.Kept{}:
25 was
26 case P.Put{text}:
27 Some{text}