(defun tree-walk (fn tree) (cond ((atom tree) (funcall fn tree)) (t (tree-walk fn (first tree)) (tree-walk fn (rest tree)))))