Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
lookup-word ( name vocab -- word )
Factor documentation
>
Factor handbook
>
The language
>
Words
>
Word introspection
>
Looking up and creating words
Prev:
create-in ( str -- word )
Vocabulary
words
Inputs and outputs
name
a
string
vocab
a
string
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
at
;