def update_checked

bendvy-ecs-core@0.1.0.4 · event_runtime.bend:120

import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntime
import 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

Uses (5)

Used by (1)