ok, thx. just trying to keep myself to a high standard while learning this stuff ;)
On Sep 27, 11:12 am, Michael Gardner <gardne...@gmail.com> wrote: > On Sep 27, 2010, at 9:59 AM, Glen Rubin wrote: > > > yes correct. but i can write a fn to determine the index of the > > minimum distance in my new list? > > > that index applied to my original list will give me the value back. > > and this still would involve fewer calculations i think. > > Do you have a particular reason to be concerned about performance here? Don't > worry about it unless profiling tells you it's a bottleneck for your program. > > And I doubt it will actually give better performance anyway, even with > min-key evaluating f more times than is necessary, because your f is so > inexpensive to calculate. -- 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