Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2011 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/829892 to your computer and use it in GitHub Desktop.
Save anonymous/829892 to your computer and use it in GitHub Desktop.
<amalloy> (doc tree-seq)
<sexpbot> ⟹ "([branch? children root]); Returns a lazy sequence of the
nodes in a tree, via a depth-first walk. branch? must be a fn of one
arg that returns true if passed a node that can have children (but may
not). children must be a fn of one arg that returns a sequence of the
children. Will only be called on nodes for which branch? returns true.
Root is the root node of the tree."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment