Handbook
Glossary
lookup-word ( name vocab -- word )
Factor handbook
»
The language
»
Words
»
Word introspection
»
Looking up and creating words
Prev:
create-word-in ( str -- word )
Vocabulary
words
Inputs
name
a
string
vocab
a
string
Outputs
word
a
word
or
f
Word description
Looks up a word in the dictionary. If the vocabulary or the word is not defined, outputs
f
.
Definition
USING:
assocs
vocabs
;
IN:
words
:
lookup-word
( name vocab -- word )
vocab-words-assoc
at
;