I know what assoc does:

user=> (assoc [\a \b \c] 0 \d)  ;please extend to much larger vector
with index somewhere in the middle
[\d \b \c]

but what if I want:

user=> (assoc-x [\a \b \c] 0 \d)  ;is there an assoc-x
[\a \d \b \c]

I don't see a function that does this.  I'm sure I'm missing it.  I,
of course, know this could be done with a combination of other
functions like subvec and/or into but it seems fundamental enough to
have its function.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to