namespaces sequences sorting summary vocabs vocabs.files
vocabs.hierarchy vocabs.loader vocabs.metadata words
words.symbol ;
-FROM: vocabs.hierarchy => child-vocabs ;
IN: help.vocabs
: about ( vocab -- )
] unless-empty ;
: describe-children ( vocab -- )
- vocab-name child-vocabs
+ vocab-name disk-vocabs-for-prefix
$vocab-roots ;
: files. ( seq -- )
: describe-words ( vocab -- )
{
- { [ dup lookup-vocab ] [ words $words ] }
+ { [ dup lookup-vocab ] [ vocab-words $words ] }
{ [ dup find-vocab-root ] [ vocab-is-not-loaded ] }
[ drop ]
} cond ;
: words. ( vocab -- )
last-element off
- [ require ] [ words $words ] bi nl ;
+ [ require ] [ vocab-words $words ] bi nl ;
: describe-metadata ( vocab -- )
[
} cleave ;
: keyed-vocabs ( str quot -- seq )
- [ all-vocabs-recursive ] 2dip '[
+ [ all-disk-vocabs-recursive ] 2dip '[
[ _ swap @ member? ] filter no-prefixes
[ name>> ] sort-with
] assoc-map ; inline