This is the trivial solution, by the way -

(update-in dining-table [:eatables :fruits] #(dissoc % :sour))

Regards,
BG

On Mon, May 28, 2012 at 1:11 PM, Z.A <zahmed...@gmail.com> wrote:
> Hi
> I am trying to create a function to remove all :sour eatables from my
> dining table but so far only getting sour results.
>
> (def dining-table {:drinks {:cold "coke", :hot "tea"}, :eatables
> {:fruits {:sour "lemon", :sweet "mango"}}})
>
> (the-function-i-want   dining-table)  should give the following output
>
> {:drinks {:cold "coke", :hot "tea"}, :eatables {:fruits { :sweet
> "mango"}}}
>
> thank you all.
> Zubair
>
> --
> 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



-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
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