Do not map nodes on conses (be consistent with tree map)

master
Matus Goljer 12 years ago
parent 0310e0e52e
commit 9e1a667afc
  1. 3
      dash.el

@ -1906,7 +1906,8 @@ returns non-nil, apply FUN to this node and do not descend
further."
(if (funcall pred tree)
(funcall fun tree)
(if (listp tree)
(if (and (listp tree)
(not (-cons-pair? tree)))
(-map (lambda (x) (-tree-map-nodes pred fun x)) tree)
tree)))

Loading…
Cancel
Save