Please keep in mind that I'm starting from an empty map. So, I'm looking
for an idiomatic Clojure code to achieve my purpose where if the map
doesn't has that specific key, it will create an entry of that key and add
the value to the newly created vector. And if the key exists, then add the
value to the existing vector.
On Tuesday, June 17, 2014 7:21:43 PM UTC+2, Hussein B. wrote:
>
> Hi,
>
> This is a very basic question, so be patient please! :)
>
> I have an empty map where key is an integer and the value is a vector.
>
> How I can add an element to the vector of a specific key?
>
> For example:
>
> {1 [11]}
>
> Then
>
> {1 [ 11 22]}
>
> Thanks for help and time.
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.