def swapped

bendvy-ecs-core@0.1.0.4 · ordinary_recoverable_array_resource.bend:39

import bendvy-ecs-core@0.1.0.4/ordinary_recoverable_array_resource.bend as OrdinaryRecoverableArrayResource
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/recoverable_array.bend as A
import bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend as ArrayOwner

39def swapped(~S:Data,~C:Type,~P:Type,~E:Data,result:ArrayOwner.Attempt<W.World<S,C,Array<P>,E>,List<A.Record<P>>,P>) -> Attempt<Frame<W.World<S,C,Array<P>,E>,List<A.Record<P>>>,P>:
40  match result:
41    case ArrayOwner.Applied{world,journal}:Applied{Frame{world,journal}}
42    case ArrayOwner.Refused{world,journal,replacement}:Refused{Frame{world,journal},replacement}

Uses (7)

Used by (1)