Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
pair? ( object -- ? )
Vocabulary
arrays
Inputs and outputs
object
an
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
;