Handbook
Glossary
extract-words ( seq vocab -- assoc )
Vocabulary
vocabs
.
parser
.
private
Inputs
seq
an
object
vocab
an
object
Outputs
assoc
an
object
Definition
USING:
accessors
assocs
kernel
vocabs.parser
;
IN:
vocabs.parser.private
:
extract-words
( seq vocab -- assoc )
[
words>>
extract-keys
dup
]
[
name>>
]
bi
[
swap
[
2drop
]
[
no-word-in-vocab
]
if
]
curry
assoc-each
;