BTW Rich, The documentation http://clojure.org/data_structures hints that accessors are faster than regular map lookups and provides the following example: (reduce (fn [n y] (+ n (:fred y))) 0 x) -> 4999950000 (reduce (fn [n y] (+ n (fred y))) 0 x) -> 4999950000
However I think it would be clearer if you explicitly showed the speed improvement: user=> (time (reduce (fn [n y] (+ n (:fred y))) 0 x)) "Elapsed time: 100.838989 msecs" 4999950000 user=> (time (reduce (fn [n y] (+ n (fred y))) 0 x)) "Elapsed time: 48.82307 msecs" 4999950000 Regards, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
