until* ( ..a pred: ( ..a -- ..b ? ) body: ( ..b -- ..a ) -- ..b ? )


Vocabulary
kernel

Inputs
preda quotation with stack effect ( ..a -- ..b ? )
bodya quotation with stack effect ( ..b -- ..a )


Outputs
?a boolean


Word description
Calls body until pred returns t. The return value of pred is kept on the stack.

Definition

: until*
( ..a pred: ( ..a -- ..b ? ) body: ( ..b -- ..a ) -- ..b ? )
[ [ dup ] compose ] dip [ drop ] prepose until ; inline