tuple= ( tuple1 tuple2 -- ? )
Factor handbook » The language » Objects » Tuples » Tuple introspection

Prev:slots>tuple ( seq class -- tuple )
Next:define-tuple-class ( class superclass slots -- )


Vocabulary
classes.tuple

Inputs
tuple1a tuple
tuple2a tuple


Outputs
?a boolean


Word description
Checks if two tuples have equal slot values. This is the default behavior of = on tuples, unless the tuple class subclasses identity-tuple or implements a method on equal?. In cases where equality has been redefined, this word can be used to get the default semantics if needed.

Definition