On Dec 13, 9:41 am, Dmitri <[email protected]> wrote:
...
> The slowdown seems to occur in the inc-count
> function, where it "updates" the map using the assoc. Is this not a
> proper way to approach this in clojure?
(recur (time (inc-count words head)) tail))))
You're pretty tightly looping here-- are you sure the overhead isn't
in this extra (time) call rather than (inc-count) itself?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---