I am porting this code to pure clojure http://nedbatchelder.com/code/modules/hyphenate.py
It's relatively simple - but it raises an interesting problem (for me) which is this: The function hyphenate - can be considered to be a pure function - if you make tree and exceptions arguments The for loop in the function hyphenate is imperative, destructive internally. But it is short and clear. The question is: what is the best way to write such a function in clojure. I ask because when I try to do this I end up with quite a lot more code than the original. - is this a candidate for transients? probably - is there a clean way to port this to clojure, retaining the simplicity and (probably) efficiency, without using transients Thanks for any advice Cheers Dave -- 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