pair? ( object -- ? )


Vocabulary
arrays

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the pair class.

Definition
USING: kernel math sequences ;

IN: arrays

: pair? ( object -- ? )
dup array? [ length 2 number= ] [ drop f ] if ;