Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
sequence? ( object -- ? )
Factor documentation
>
Factor handbook
>
The language
>
Collections
>
Sequence operations
>
Sequence protocol
Prev:
sequence
Next:
length ( seq -- n )
Vocabulary
sequences
Inputs and outputs
object
an
object
?
a boolean
Word description
Tests if the object is an instance of the
sequence
class.
Definition
USING:
benchmark.tuple-arrays
game.models.util
kernel
math.blas.matrices
sequences.complex-components
sequences.shifted
sequences.windowed
;
IN:
sequences
:
sequence?
( object -- ? )
dup
shifted?
[
drop
t
]
[
dup
blas-matrix-rowcol-sequence?
[
drop
t
]
[
dup
point-array?
[
drop
t
]
[
dup
indexed-seq?
[
drop
t
]
[
dup
windowed-sequence?
[
drop
t
]
[
dup
complex-components?
~quotation~
~quotation~
if
]
if
]
if
]
if
]
if
]
if
;