recursive — Recursively apply a transform, and possibly a secondary transform
recursive ( primary-transform
)
recursive (primary-transform
,secondary-transform
)
Sometimes you would like a transform to return an entire sub-tree
of hierarchical data related to a program object. BBQ provides
some special-purpose transforms (such as recursive derived classes) for this purpose; this transform operator
lets you recursively apply an arbitrary transform.
Use care when using this operator, since you might accidentally
specify a recursion that does not end (i.e. recursive ( same )
).
To prevent a hang or crash, the operator will stop recursing at an
arbitrary depth (50).
The effect of this transform operator can be most concisely described recursively:
primary-transform
to a set, combined with the result
of applying this transform to that result.
primary-transform
to the set,
combined with the result of applying this transform to the result
of applying secondary-transform
to the result of applying
primary-transform
to the set.
browse-by-query home | antlersoft free software | sourceforge project page |