def pending_ready

bendvy-ecs-core@0.1.0.4 · snapshot_data.bend:21

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

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

Uses (5)

Used by (1)