VocabularykernelInputsobj1 | a generalized boolean |
obj2 | a generalized boolean |
Outputsobj2/obj1 | a generalized boolean |
second? | boolean |
Word descriptionA version of
or which prefers to return second argument instead of the first. The output
second? tells you which object was returned.
ExamplesPrefers the second argument:
USING: arrays kernel prettyprint ;
f 3 or? 2array .
{ 3 t }
Will also return the first:
USING: arrays kernel prettyprint ;
3 f or? 2array .
{ 3 f }
Can return false:
USING: arrays kernel prettyprint ;
f f or? 2array .
{ f f }
See alsoor,
or*Definition