visit All
fun visitAll( phrases: Collection<A_Phrase>, visitedSet: MutableSet<A_Phrase>, then: () -> Unit)
Content copied to clipboard
Process all of the phrase's subphrases recursively, then style the phrase itself, then invoke the given action.
The phrases are processed in parallel, and the then action is performed only when all of the phrases have been processed.
Parameters
phrases
The Collection of A_Phrases to process.
then
The action to invoke after the phrases have been fully processed.