if-void ( ..a c-type true: ( ..a -- ..b ) false: ( ..a c-type -- ..b ) -- ..b ) (original) (raw)
if-void ( ..a c-type true: ( ..a -- ..b ) false: ( ..a c-type -- ..b ) -- ..b )
Inputs
c-type | an object |
---|---|
true | a quotation with stack effect ( ..a -- ..b ) |
false | a quotation with stack effect ( ..a c-type -- ..b ) |
Outputs
None
Definition
: if-void
( ..a c-type true: ( ..a -- ..b ) false: ( ..a c-type -- ..b ) -- ..b )
pick void? [ drop nip call ] [ nip call ] if ; inline