-find ( ... begin end quot: ( ... cursor -- ... ? ) -- ... cursor )


Vocabulary
cursors

Inputs
beginan object
endan object
quota quotation with stack effect ( ... cursor -- ... ? )


Outputs
cursoran object


Definition


: -find
( ... begin end quot: ( ... cursor -- ... ? ) -- ... cursor )
[ [ dup ] ] dip compose
[ [ [ dup ] ] dip [ cursor>= [ t ] ] curry compose ] dip
[ if ] curry compose [ inc-cursor ] until ; inline