Terminology: let's refer to nodes and tuples alike as trees.
Changed sub() repl signature.