Created
July 16, 2011 10:53
-
-
Save mneedham/1086256 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn yaks [doc] | |
| ; ... | |
| {:tag :Yaks :content[(map (ƒ [s] {:tag :Yak :content [s]}) yaks)] | |
| (defn build-map [doc] | |
| {:tag :meta :content | |
| [{:tag :Foo :content [(xml1-> doc zf/descendants :Bar text)]} | |
| {:tag :Bar :content [(xml1-> doc zf/descendants :Foo text)]} | |
| {:tag :Baz :content [(xml1-> doc :Baz text)]} | |
| (yaks doc) | |
| ; currently reads => {:tag :Yaks, :content [({:tag :Yak, :content ["clojure yak"]})]} | |
| ; I want it to read => {:tag :Yaks, :content [{:tag :Yak, :content ["clojure yak"]}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment