Created
January 12, 2016 12:42
-
-
Save anonymous/978f1af6beb6cc2156ab to your computer and use it in GitHub Desktop.
This file contains 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 trial [request] | |
(let [restaurant-list (:restaurants (cheshire/parse-string (:body (lf/get-restaurants)) true)) | |
resta () | |
] | |
(println (count restaurant-list)) | |
(for [x restaurant-list | |
:let [rest-detail (:restaurant x) | |
rest-name (:name rest-detail)]] | |
(do (println rest-name) | |
(conj resta (str rest-name)))) | |
(println "Done!") | |
(res/response resta))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment