<-Back

Function: Maptree

maptree list

Returns the results of applying fn to each GDL object in the object tree rooted at node in a ``depth-first'' tree traversal.

arguments:
node GDL object
fn Function
Operates on a single argument which is a GDL object
optional arguments:
accept? Function, Default Value: #'always
Determines which nodes to accept in the final result
prune? Function, Default Value: #'never
Determines which nodes to prune from the tree traversal
get-children Keyword symbol :children or Function, Default Value: :children
Function applied to a given node to get its children. The default, keyword symbol :children, uses the node's normal children as returned by (the-object node children)

<-Back