Barrier.drain: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend as Barrier Lines 22-25 of bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend&start_line=22&end_line=25 import Base import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred import domains.bend as D import bendvy-ecs-core@0.1.0.4/world.bend as W def drain(~S: Data,~C: Type,~R: Type,~E: Data,~classify: E -> Maybe>,commands: List>>,state: BarrierState) -> BarrierState: match commands: case []: closed(~S,~C,~R,~E,state) case command <> rest: drain(~S,~C,~R,~E,~classify,rest,command_collected(~S,~C,~R,~E,~classify,command,state)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/deferred_command.bend&name=Command https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend&name=BarrierState https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend&name=closed https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/barrier.bend&name=command_collected https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/domains.bend&name=DescriptorKey https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World