Handbook
Glossary
immutable-sequence? ( object -- ? )
Vocabulary
sequences
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
immutable-sequence
class.
Definition
USING:
classes.tuple.private
kernel
kernel.private
math.private
sequences.frozen
sequences.interleaved
sequences.prefixed
sequences.repeating
sequences.suffixed
sequences.zipped
slots.private
;
IN:
sequences
:
immutable-sequence?
( object -- ? )
dup
tag
1
swap
fixnum-shift-fast
18
fixnum-bitand
0
eq?
not
[
drop
t
]
[
dup
tuple?
[
layout-of
dup
7
slot
dup
\
zipped
eq?
[
drop
t
]
[
dup
\
suffixed
eq?
[
drop
t
]
[
dup
\
prefixed
eq?
[
drop
t
]
[
dup
\
interleaved
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
[
drop
t
]
[
dup
1
slot
9
fixnum>=
[
9
slot
dup
\
frozen
eq?
[
drop
t
]
[
dup
\
element-repeats
eq?
~quotation~ ~curried~
if
]
if
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
]
if
;