| kind | = | "Pair" |
A pair is a collection of two objects of any kind. They are used among other things to represent Dict entries.
Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
Active cells (details)
compares this pair against the argument, returning -1, 0 or 1 based on which one is larger, first comparing the 'first', then comparing the 'second'
[ show source ]
method(other,
result = self first <=>(other first)
if(result ==(0),
result = self second <=>(other second))
result)
nil
[ show source ]
method(other,
if(self same?(
nil => nil),
Reflector other:mimics?(cell(:other),
nil => nil),
bind(rescue(Condition Error, fn(c, false)),
self ==(
other))))