def pending_ready

bendvy-ecs-core@0.1.0.3 · snapshot_data.bend:22

import bendvy-ecs-core@0.1.0.3/snapshot_data.bend as SnapshotData
import Base
import bendvy-ecs-core@0.1.0.3/deferred_command.bend as Deferred

22def pending_ready(~World:Type,pending:List<Deferred.Command<World>>) -> List<Deferred.Command<World>> & Bool:
23  match pending:
24    case []:([],True{})
25    case command <> rest:(command <> rest,False{})

Uses (5)

Used by (1)