VocabularymathInputsOutputsNone
Word descriptionMakes an implicit check if the number is zero. A zero is dropped. Otherwise, the
quot is called on the number.
ExamplesThis word is equivalent to
if-zero with an empty first quotation:
USING: sequences math prettyprint ;
3 [ ] [ sq . ] if-zero
9
USING: sequences math prettyprint ;
3 [ sq . ] unless-zero
9
See alsoif-zero,
when-zero,
until-zeroDefinition