child-vocabs ( vocab -- seq )
Factor documentation > Factor handbook > The implementation > Vocabularies
Prev:vocab-help ( vocab-spec -- help )
Next:create-vocab ( name -- vocab )


Vocabulary
vocabs

Inputs and outputs
vocaba vocabulary specifier
seqa sequence of strings


Word description
Outputs all vocabularies which are conceptually under vocab in the hierarchy.

Examples
"io.streams" child-vocabs .
{ "io.streams.c" "io.streams.duplex" "io.streams.lines" "io.streams.nested" "io.streams.plain" "io.streams.string" }


Definition
USING: kernel sequences ;

IN: vocabs

: child-vocabs ( vocab -- seq )
vocab-name vocabs [ child-vocab? ] with filter ;