The Clojure data structures are immutable, so there's no need to copy. Just "modify" the existing structure and you have a new immutable instance.
If you are coming from Java, it helps to think of these immutable structures like Java's String. On Sun, Mar 28, 2010 at 9:29 AM, strattonbrazil <strattonbra...@gmail.com>wrote: > This may be really basic. So much so that it's hard to find on the > internet, but is there something like a copy constructor in clojure, > where I can copy everything in a structure except one or two keys? > Maybe something like struct-map, but fills in the other variables not > supplied by another data structure. > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > To unsubscribe from this group, send email to clojure+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.