Handbook
Glossary
words-named ( str -- seq )
Factor handbook
»
The implementation
»
Vocabularies
Prev:
all-words ( -- seq )
Next:
forget-vocab ( vocab -- )
Vocabulary
vocabs
Inputs
str
a
string
Outputs
seq
a
sequence
of
word
s
Word description
Outputs a sequence of all words named
str
from the set of currently-loaded vocabularies.
Definition
USING:
assocs
kernel
namespaces
sequences
splitting
;
IN:
vocabs
:
words-named
( str -- seq )
dictionary
get
[
values
[
vocab-words-assoc
at
]
with
map
sift
]
[
[
":"
split1
swap
]
dip
at
[
vocab-words-assoc
at
[
suffix
]
when*
]
[
drop
]
if*
]
2bi
;