before=? ( obj1 obj2 -- ? )
Factor handbook > The language > Objects > Linear order protocol

Prev:after=? ( obj1 obj2 -- ? )
Next:min ( obj1 obj2 -- obj )


Vocabulary
math.order

Inputs and outputs
obj1an object
obj2an object
?a boolean


Word description
Tests if obj1 comes before or equals obj2 using an intrinsic total order.

Notes
Implemented using <=>.

See also
before?, after?, after=?

Definition

GENERIC: before=? ( obj1 obj2 -- ? )


Methods