On Thu, Oct 25, 2012 at 8:59 AM, Brian Craft <craft.br...@gmail.com> wrote: > I have a fairly common scenario where I have a set of operations that need > to work on two types of data (not "data types" in the clojure sense) that > have different internal structure (i.e. maps with different keys). I could > write a generic function that operates on both types of map. That would > require implementing getters for each type (not sure where those would > live).
Jim touched on this - you could have functions that "map" the two different input data structures to a common form that the function needs (assuming the call sites know which structure is which). But as Brandon said, if you can give a more specific example...? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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