-
-
Save cemerick/6b7bb333293fd11855d9 to your computer and use it in GitHub Desktop.
capturing result of :or in core.match
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
user> (match/match [5] [(:or 5 6 :as x)] x) | |
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context | |
user> (match/match [5] [((:or 5 6) :as x)] x) | |
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context | |
user> (match/match [5] [(:or (5 :as x) (6 :as x))] x) | |
5 | |
user> (match/match [5] [(:or (5 :as x) (6 :as y))] x) | |
CompilerException java.lang.RuntimeException: Unable to resolve symbol: x in this context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment