def pending_length_acc

bendvy-ecs-core@0.1.0.3 · world.bend:358

import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.3/deferred_command.bend as Deferred

358def pending_length_acc(~S: Data,~C: Type,~R: Type,~E: Data,commands:List<Deferred.Command<World<S,C,R,E>>>,reversed: List<Deferred.Command<World<S,C,R,E>>>,count: U32) -> List<Deferred.Command<World<S,C,R,E>>> & U32:
359  match commands:
360    case []: (List.reverse(&1,Deferred.Command<World<S,C,R,E>>,reversed),count)
361    case command <> rest: pending_length_acc(~S,~C,~R,~E,rest,command <> reversed,(count + 1 : U32))

Uses (8)

Used by (1)