-
-
Save kindlychung/e59a3a607fcf4ac5a71e 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
(clojure.core/and | |
(clojure.core/= | |
(clojure.core/count [1 2]) | |
(clojure.core/count '[0 5])) | |
(clojure.core/every? | |
clojure.core/identity | |
(clojure.core/map cina.ref-types/match-item? '[0 5] [1 2]))) |
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 create-test-expression [input match-expression] | |
`(and (= (count ~input) ~(count match-expression)) | |
(every? identity (map match-item? '~match-expression ~input)))) | |
(pprint (let [y 5] | |
(create-test-expression [1 2] [0 y]))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment