3 ms·
This would work: http://gist.github.com/536715 http://gist.github.com/536715 I'm not sure wether this is good style. Probably not. Edit: Bah. Fixed an error.
by die_sekte 16y ago
This would work: http://gist.github.com/536715 http://gist.github.com/536715
I'm not sure wether this is good style. Probably not.
Edit: Bah. Fixed an error.
- herdrick 16y ago'replace-in-form' is a tree-replace, which in Clojure is done with clojure.walk/postwalk-replace. The clojure.walk package is basically tree-map stuff. Sadly, as far as I know, you need to roll your own tree-reduce.
- die_sekte 16y agoThanks for that. I did look at clojure.walk, I just didn't look close enough.