def update_checked
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntimeimport Base
120def update_checked(found: Bool,dispose: Bool,+id: U32,+old: Nat,+registered: Nat,+rest: List<&2,Position>,+cursor: Nat) -> List<&2,Position>:
121 match found dispose:
122 case False{} _: Position{id,old,registered} <> rest
123 case True{} False{}: Position{id,cursor,registered} <> rest
124 case True{} True{}: rest