Skip to main content

TreeExtract

TreeExtract[tree,pos] extracts the subtree of tree at the position specified by pos.

TreeExtract[tree,{pos1,pos2,…}] extracts a list of subtrees of tree.

TreeExtract[tree,pos,h] extracts subtrees of tree, applying h to each subtree.

TreeExtract[pos] represents an operator form of TreeExtract that can be applied to a tree.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.