(deftest p62-internals (is (= '(a c) (internals '[a [b nil nil] [c [d nil nil] [e nil nil]]]))))
I used the same idea as in the two previous exercises: walk the tree and filter, just filtering for branch nodes this time. Again using a predicate I wrote earlier. Solution on Github.
No comments:
Post a Comment