Handbook
Glossary
match-patterns ( patterns filenames -- filenames' )
Vocabulary resource metadata
Next:
vocab-resource-files ( vocab -- filenames )
Vocabulary
vocabs
.
metadata
.
resources
Inputs
patterns
a sequence of glob patterns
filenames
a sequence of filenames
Outputs
filenames'
a filtered sequence of filenames
Word description
Matches all the glob patterns in
patterns
to the sequence of files in
filenames
. If a pattern doesn't match anything, then a
resource-missing
error will be thrown containing that pattern.
Definition
USING:
kernel
sets
;
IN:
vocabs.metadata.resources
:
match-patterns
( patterns filenames -- filenames' )
[
match-pattern
]
curry
gather
;