def without
import bendvy-ecs-core@0.1.0.3/execution_deferred_plan.bend as ExecutionDeferredPlanimport Base
50def without(positions:List<&2,Position>,+id:U32) -> List<&2,Position>:
51 match positions:
52 case []:[]
53 case Position{+other,distance,pending} <> rest:keep_position(U32.is_eq(other,id),Position{other,distance,pending},without(rest,id))