Handbook
Glossary
forget-vocab ( vocab -- )
Factor handbook
»
The implementation
»
Vocabularies
Prev:
words-named ( str -- seq )
Vocabulary
vocabs
Inputs
vocab
a
string
Outputs
None
Word description
Removes a vocabulary. All words in the vocabulary are forgotten.
Notes
This word must be called from inside
with-compilation-unit
.
See also
FORGET:
,
forget
,
forget*
Definition
USING:
kernel
sequences
vocabs.private
;
IN:
vocabs
:
forget-vocab
( vocab -- )
[
(forget-vocab)
]
[
vocab-name
dup
".private"
tail?
[
drop
]
[
".private"
append
(forget-vocab)
]
if
]
bi
;