Handbook
Glossary
slice? ( object -- ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Subsequences and slices
Prev:
slice
Next:
<slice> ( from to seq -- slice )
Vocabulary
sequences
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
slice
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
sequences
:
slice?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
\
slice
eq?
]
[
drop
f
]
if
;