stack-find ( seq quot: ( elt -- 1/0/-1 ) -- i/f )


Vocabulary
html.parser.analyzer

Inputs
seqa sequence
quota quotation with stack effect ( elt -- 1/0/-1 )


Outputs
i/fan index or f


Word description
Takes a sequence and a quotation expected to return -1 if the element decrements the stack, 0 if it doesn't affect it and 1 if it increments it. Then finds the first element where the stack is empty.

Definition