def pair_caps

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

import bendvy-ecs-core@0.1.0.4/recognized_query_declaration.bend as RecognizedQueryDeclaration
import Base
import bendvy-ecs-core@0.1.0.4/internal/compact_operational_frame.bend as F

68# Internal grant assembly for pair: produce left and right operation bundles
69# for the same compact owner. Prefer pair rather than assembling these manually.
70def pair_caps(~S:Data,~Store:Type,~R:Type,~E:Data,~L:Type -> Type,~Right:Type -> Type,~left:Declaration<S,Store,R,E,L>,~right:Declaration<S,Store,R,E,Right>) -> L(F.Frame<S,Store,R,E>) & Right(F.Frame<S,Store,R,E>):
71  (caps(~S,~Store,~R,~E,~L,left),caps(~S,~Store,~R,~E,~Right,right))

Uses (5)

Used by (1)