uses ( defspec -- seq )
Factor handbook » Developer tools » Definition cross referencing

Next:get-crossref ( -- crossref )


Vocabulary
tools.crossref

Inputs
defspeca definition specifier


Outputs
seqa sequence of definition specifiers


Word description
Outputs a sequence of definitions called by the given definition.

Notes
The sequence might include the definition itself, if it is a recursive word. References inside literal arrays, vectors, lists, dlists, vlists, persistent collections, non-sequence assocs, and non-sequence sets are traversed, as are the definitions of uninterned words. Cycles are visited only once. Arbitrary virtual sequences are not expanded.

Examples
We can ask the sq word to produce a list of words it calls:
\ sq uses .
{ dup * }


Definition

GENERIC: uses ( defspec -- seq )


Methods