Handbook
Glossary
after=? ( obj1 obj2 -- ? )
Factor handbook
»
The language
»
Objects
»
Linear order protocol
Prev:
before? ( obj1 obj2 -- ? )
Next:
before=? ( obj1 obj2 -- ? )
Vocabulary
math
.
order
Inputs
obj1
an
object
obj2
an
object
Outputs
?
a
boolean
Word description
Tests if
obj1
comes after or equals
obj2
using an intrinsic total order.
Notes
Implemented using
<=>
.
See also
before?
,
after?
,
before=?
Definition
IN:
math.order
GENERIC:
after=?
( obj1 obj2 -- ? )
Methods
USING:
kernel
math.order
;
M:
object
after=?
<=>
+lt+
eq?
not
;
inline
USING:
math
math.order
;
M:
real
after=?
>=
;
inline