closure-with ( vertex quot1: ( key -- vertices ) quot2: ( vertex -- keys ) -- set )


Vocabulary
hacker-news

Inputs
vertexan object
quot1a quotation with stack effect ( key -- vertices )
quot2a quotation with stack effect ( vertex -- keys )


Outputs
setan object


Definition


: closure-with
( vertex quot1: ( key -- vertices ) quot2: ( vertex -- keys ) -- set )
over [ map ] curry compose [ closure ] curry compose call ;
inline