Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
set-word-prop ( word value name -- )
Factor documentation
>
Factor handbook
>
The language
>
Words
>
Word introspection
>
Word properties
Prev:
word-prop ( word name -- value )
Vocabulary
words
Inputs and outputs
word
a
word
value
a property value
name
a property name
Word description
Stores a word property. Word property names are conventionally strings.
Side effects
Modifies
word
Definition
USING:
accessors
hashtables
kernel
;
IN:
words
:
set-word-prop
( word value name -- )
over
[
pick
props>>
?set-at
>>props
drop
]
[
nip
remove-word-prop
]
if
;