Handbook
Glossary
box
Factor handbook
»
The language
»
Collections
»
Boxes
Next:
<box> ( -- box )
Vocabulary
boxes
Class description
A data type holding a single value in the
value
slot. The
occupied
slot indicates if the value is set.
Definition
IN:
boxes
TUPLE:
box
value occupied
;
Methods
USING:
boxes
kernel
refs
;
M:
box
delete-ref
box>
drop
;
USING:
boxes
refs
;
M:
box
get-ref
box>
;
USING:
boxes
refs
;
M:
box
set-ref
>box
;