Return the mapping over nl of the function on a node that returns the ancestors of the node, where the ancestors of a node are an empty node-list if the node is a tree root, and otherwise are the result of appending the ancestors of the parent of the node and the parent of the node.
list of nodes we want the ancestors of
Type: node-list
List of ancestors