We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following works with alpha11, but not alpha12:
(require '[clojure.spec :as s]) (require '[clojure.future :refer :all]) (require '[clojure.spec.test :as stest]) (s/def ::n nat-int?) => :user/n (s/fdef sample :args (s/cat :some-map (s/keys :req-un [::n]))) => user/sample (defn sample [some-map] some-map) (stest/instrument 'user/sample) => [user/sample] (sample {:n 6}) UnsupportedOperationException nth not supported on this type: PersistentArrayMap clojure.lang.RT.nthFrom (RT.java:947)
With alpha11:
... (sample {:n 6}) => {:n 6}
The text was updated successfully, but these errors were encountered:
Just tested with Clojure 1.9-alpha12 and it works fine. So it seems to be something related to the backport.
Sorry, something went wrong.
4dbb75b
Looks like it was related to changes in clojure.core which I don’t port. In 1.9 it’s ok to destructure map as sequence, in 1.8 it is not:
(let [[x & xs] {:n 6}]) => java.lang.UnsupportedOperationException: nth not supported on this type: PersistentArrayMap
Fix regression on tonsky#2
a8e2f44
Fix regression on #2 (#7)
10f3426
* Fix regression on #2 * Fix README typo
No branches or pull requests
The following works with alpha11, but not alpha12:
With alpha11:
The text was updated successfully, but these errors were encountered: