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.
Examples
tree = Tree[a, {Tree[b, {c, d}], Tree[e, {f}]}];
TreeExtract[tree, {1}]Please visit the official Wolfram Language Reference for more details.