I'm having problems with a recursive call I make. The problem (as far as I gather) is that I have two recursive calls within a condition and I'm not sure if the second recursive call is being made. After both recursive calls have completed, I combine their results with 'rslt' to form a new vector. I am using the 'else' part of the condition as the base case.
defn dp [crds eps] ; I do some computation here to calculate dmax, index, and end which I have omitted ;... (if (>= dmax eps) (do (let [rslt1 (dp (subvec crds1 0 (+ index 2)) eps) rslt2 (dp (subvec crds1 index end) eps)] (let [rslt (into (subvec rslt1 0 (- (count rslt1) 2)) (subvec rslt2 0 (count rslt2)))] rslt))) (let [rslt (into (subvec crds1 0 2) (subvec crds1 (- end 2) end))] rslt))) Suggestions would be greatly appreciated. Thank you! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---