On Dec 14, 11:23 pm, Richard Newman <holyg...@gmail.com> wrote:
> Something I keep bumping into: the SQL library returns rows as struct-
> maps. Often I want to do things like rename keys (:foo_bar => :foo-
> bar), strip out :id columns, etc.
>
> Nope!
>
>    java.lang.Exception: Can't remove struct key
>
> Any opinions on returning a hash-map after 'removing' (remember, these  
> are persistent data structures) a key from a struct-map? They print  
> the same, act the same... except in this instance.

So have (dissoc mystruct :akey) act like (dissoc (into {}
mystruct) :akey)?  Sounds reasonable to 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

Reply via email to