?1if ( ..a x pred: ( ..a x quot: ( ..a x -- ..b ? ) -- ..b x ? ) true: ( ..b x -- ..c ) false: ( ..b x -- ..c ) -- ..c )


Vocabulary
combinators.extras

Inputs
xan object
preda quotation with stack effect ( ..a x quot: ( ..a x -- ..b ? ) -- ..b x ? )
truea quotation with stack effect ( ..b x -- ..c )
falsea quotation with stack effect ( ..b x -- ..c )


Outputs
None

Definition


: ?1if
( ..a x pred: ( ..a x quot: ( ..a x -- ..b ? ) -- ..b x ? ) true: ( ..b x -- ..c ) false: ( ..b x -- ..c ) -- ..c )
[ ?1guard ] 2dip if ; inline