On Wed, Apr 25, 2012 at 10:30 PM, Shantanu Kumar
<[email protected]>wrote:
> 2. It is quite verbose to construct a Bar from a Foo. Knowing that
> there is an overlap of attributes, is there a less verbose way to do
> it?
>
>
Have you tried this?
user=> (map->B (merge (A. 1 2) {:c 1}))
#user.B{:a 1, :b 2, :c 1}
Thanks,
Ambrose
--
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