-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
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
Vector: assoc exception #27
Comments
Yes this isn't a bug, var v1 = _.vector(4, 5);
var v2 = _.pop(v1);
var v3 = _.assoc(v2, 0, 'b'); |
Thanks dnolen for your quick answer :) I was indeed checking http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/subvec. By the way, I saw that Thanks |
Oops missing |
|
Hi,
thanks for this awesome lib :)
I'm not a Clojure programmer and didn't look at the clojurescript implementation yet.
Given a vector, I want to get a new vector expect some of its first elements (for now, just the tail of the vector) then replace (or insert on head ) the first element of this new vector.
Here is a failing sample:
I get a "No protocol method IAssociative.-assoc defined for type object: (5)"
Is this normal, how can I do what I intended to do ?
Thanks a lot,
Best,
Simon
The text was updated successfully, but these errors were encountered: