edge-loop ( ..a edge quot: ( ..a edge -- ..b ) next-edge-quot: ( ..b edge -- ..a edge' ) -- ..a )


Vocabulary
game.models.half-edge

Inputs
edgean object
quota quotation with stack effect ( ..a edge -- ..b )
next-edge-quota quotation with stack effect ( ..b edge -- ..a edge' )


Outputs
None

Definition


: edge-loop
( ..a edge quot: ( ..a edge -- ..b ) next-edge-quot: ( ..b edge -- ..a edge' ) -- ..a )
pick [ [ bi dup ] 2curry ] dip [ eq? not ] curry compose
loop drop ; inline