def remaining

bendvy-ecs-core@0.1.0.4 · bundle_batch.bend:70

import bendvy-ecs-core@0.1.0.4/bundle_batch.bend as BundleBatch
import Base
import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred
import transaction.bend as T

70def remaining(~World:Type,~E:Data,commands:List<Deferred.Command<World>>,tx:T.Tx<World,E>) -> T.Tx<World,E>:
71  match commands:
72    case []: tx
73    case command <> tail: remaining(~World,~E,tail,T.stage_command(~World,~E,tx,command))

Uses (4)

Used by (1)