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
| user=> (assert (= 3 (+ 1 1))) | |
| Execution error (AssertionError) at user/eval142 (REPL:1). | |
| Assert failed: (= 3 (+ 1 1)) |
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
| (defmacro assert [x] | |
| (when *assert* | |
| `(when-not ~x | |
| (throw (new AssertionError (str "Assert failed: " | |
| (pr-str '~x))))))) |
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
| user=> (def x 4) | |
| ;=> #'user/x | |
| user=> `(1 2 3 ~x 5) ;=> (1 2 3 4 5) |
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
| user=> (let [my-list (* 5 6 7 8)] | |
| (println my-list)) |
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
| user=> `(pqr xyz abc) | |
| (user/pqr user/xyz user/abc) |
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
| user=> '({:a 1} (println 2)) | |
| ({:a 1} (println 2)) |
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
| user=> `({:a 1} (println 2)) | |
| ({:a 1} (clojure.core/println 2)) |
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
| user=> (quote ({:a 1} (println 2))) | |
| ({:a 1} (println 2)) |
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
| (defmacro mah-macro [x] | |
| (println x)) |
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
| { | |
| "SessionKey": "21a822d1-6795-4444-892e-24a79f170f6d", | |
| "Query": { | |
| "Country": "IN", | |
| "Currency": "INR", | |
| "Locale": "en-GB", | |
| "Adults": 1, | |
| "Children": 0, | |
| "Infants": 0, | |
| "OriginPlace": "10075", |
NewerOlder