Handbook
Glossary
>box ( value box -- )
Factor handbook
»
The language
»
Collections
»
Boxes
Prev:
<box> ( -- box )
Next:
box> ( box -- value )
Vocabulary
boxes
Inputs
value
an
object
box
a
box
Outputs
None
Word description
Stores a value into a box.
Errors
Throws an error if the box is full.
Definition
USING:
accessors
kernel
;
IN:
boxes
:
>box
( value box -- )
dup
occupied>>
[
box-full
]
[
t
>>occupied
value<<
]
if
;
inline