def collect_checked
bendvy-ecs-core@0.1.0.4 · removals.bend:99
import bendvy-ecs-core@0.1.0.4/removals.bend as Removals
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
99def collect_checked(~S: Data,~C: Type,~R: Type,~E: Data,retain: Bool,world: W.World<S,C,R,E>) -> W.World<S,C,R,E>:
100 match retain world:
101 case True{} world: world
102 case False{} W.World{namespace,allocator,store,resource,_,pending,registrations,nextSystemId,clock}: W.World{namespace,allocator,store,resource,[],pending,registrations,nextSystemId,clock}