def restored
bendvy-ecs-core@0.1.0.4 · bundle_canonical_construction.bend:8
import bendvy-ecs-core@0.1.0.4/bundle_canonical_construction.bend as BundleCanonicalConstruction
import Base
import bundle_construction.bend as Build
8
9
10
11
12
13def restored(~Ctx:Type,~Factory:Type,~Rest:Type,~I:Type,~P:Type,~Error:Data,~restore:Factory -> Rest -> Ctx,rest:Rest,observed:Factory & Build.Construction<I,P,Error>) -> Ctx & Build.Construction<I,P,Error>:
14 match observed:
15 case (factory,result): (restore(factory,rest),result)