def scan_pair

bendvy-ecs-core@0.1.0.4 · ordinary_service_declaration.bend:68

import bendvy-ecs-core@0.1.0.4/ordinary_service_declaration.bend as OrdinaryServiceDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

68# Advanced left-then-right World scan composition, retaining returned World and
69# concatenating statuses in that order. Does not call either service payload.
70def scan_pair(~S:Data,~C:Type,~R:Type,~E:Data,~left:W.World<S,C,R,E> -> W.World<S,C,R,E> & List<&2,Status<S>>,~right:W.World<S,C,R,E> -> W.World<S,C,R,E> & List<&2,Status<S>>,world:W.World<S,C,R,E>) -> W.World<S,C,R,E> & List<&2,Status<S>>:
71  scan_next(~S,~C,~R,~E,~right,left(world))

Uses (5)

Used by (1)