Handbook
Glossary
mime-db ( -- seq )
Vocabulary
mime
.
types
Inputs
None
Outputs
seq
a
sequence
Word description
Outputs an array where the first element is a MIME type and the rest of the array is file extensions that have that MIME type.
Definition
USING:
io.encodings.ascii
io.files
sequences
splitting
;
IN:
mime.types
IDENTITY-MEMO:
mime-db
( -- seq )
"vocab:mime/types/mime.types"
ascii
file-lines
[
"#"
head?
]
reject
[
" \t"
split
harvest
]
map
harvest
;