Handbook
Glossary
pack-tuple ( tuple -- array )
Factor handbook
»
The language
»
Objects
»
Tuples
»
Tuple introspection
Next:
unpack-tuple ( seq -- tuple )
Vocabulary
classes
.
tuple
Inputs
tuple
a
tuple
Outputs
array
an
array
Word description
Outputs an array having the tuple's slots as elements. The first element is the tuple class word and remainder are declared slots.
See also
tuple-slots
,
slots>tuple
,
unpack-tuple
Definition
USING:
sequences
;
IN:
classes.tuple
:
pack-tuple
( tuple -- array )
tuple>slots
prefix
;