There are ways to achieve what you ask, but normally you wouldn't use
nested vectors for data structures you want to operate on associatively.
 It will be inefficient, and the code will be ugly. Better to use more maps
and key them by:key and :id.


On Mon, Dec 9, 2013 at 12:46 AM, 박재혁 <aquu...@gmail.com> wrote:

> sorry I can't write English.
>
>
> watch my code.
>
> (def room-list (*atom[]*))
>
> (def rooms-1 {:key "12345" :create-dt "2013-11-22" :user-list[ {:name
> "name-1" :id "id-1"}  {:name "name-2" :id "id-2"}] })
> (def rooms-2 {:key "67890" :create-dt "2013-12-52" :user-list[ {:name
> "name-3" :id "id-3"}  {:name "name-3" :id "id-3"}] })
>
> (swap! room-list conj rooms-1)
> (swap! room-list conj rooms-2)
>
> @room-list
>   --> [{:key "12345", :create-dt "2013-11-22", :user-list [{:name
> "name-1", :id "id-1"    } {:name "name-2", :id "id-2"}]}
>         {:key "67890", :create-dt "2013-12-52", :user-list [*{:name
> "name-3", :id "id-3"}* {:name "name-3", :id "id-3"}]}]
>
>
> I want remove red color text. ( red colore )
>
> @room-list
> -->  [{:key "12345", :create-dt "2013-11-22", :user-list [{:name "name-1",
> :id "id-1"} {:name "name-2", :id "id-2"}]}
>         {:key "67890", :create-dt "2013-12-52", :user-list [{:name
> "name-3", :id "id-3"}] }]
>
>
> I don't know how to remove...
>
> dissoc,, pop, peek function can;t not solve.....
>
>
> please help me...
>
> --
> --
> 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
> ---
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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
--- 
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to