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
before-index
Reproduction steps:
(require '[com.rpl.specter :as s]) (->> [1 [2 2] 5 34] (s/setval [(s/nthpath 1) (s/before-index 2)] []) (s/setval [(s/nthpath 1) (s/before-index 2)] []))
Throws: No protocol method InsertBeforeIndex.insert-before-idx defined for type cljs.core/Subvec: [2 2 []]
No protocol method InsertBeforeIndex.insert-before-idx defined for type cljs.core/Subvec: [2 2 []]
Looks like the first s/setval converts [2 2] into a subvec instead of keeping it as vector.
s/setval
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction steps:
Throws:
No protocol method InsertBeforeIndex.insert-before-idx defined for type cljs.core/Subvec: [2 2 []]
Looks like the first
s/setval
converts [2 2] into a subvec instead of keeping it as vector.The text was updated successfully, but these errors were encountered: