Probably CSV or some other externally-input data. And FWIW I like BG's solution - it's what I would have written, except it's better.
On Oct 14, 2:11 pm, Sean Corfield <seancorfi...@gmail.com> wrote: > On Fri, Oct 14, 2011 at 10:25 AM, der <derealme.derea...@gmail.com> wrote: > > Given a list of maps of the followign format: ({"Type" "A", "Value" > > "5"} {"Type" "B", "Value" "4"} {"Type" "A", "Value" "7.2"} {"Type" > > "A", "Value" "25.4"} {"Type" "B", "Value" "2.982"}) > > Folks are posting solutions but I wondered why your map keys are > strings and why the values are also strings instead of numbers? > > If the keys were keywords, you could just use :type instead of #(% > "Type") or #(get % "Type") which would make for cleaner code. Just a > thought. > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View --http://corfield.org/ > World Singles, LLC. --http://worldsingles.com/ > Railo Technologies, Inc. --http://www.getrailo.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