def include
import bendvy-ecs-core@0.1.0.3/execution_publication_order.bend as ExecutionPublicationOrderimport Base
5# Only actual system IDs enter the retained publication order. Synthetic sync
6# nodes are execution boundaries, never registered command owners.
7def include(id:U32,selected:Bool,rest:List<&2,U32>) -> List<&2,U32>:
8 match selected:
9 case True{}:id <> rest
10 case False{}:rest