Just for curiosity. What mobile phone (Android or iOS) did you port your
CommonLisp libraries onto ?
--
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 mo
Thanks Gary for the explanation on "recur" in "TCE only" situation.
--
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 y
True. Clojure doesn't provide tail call optimization. According to Daniel
Higginbotham book "Clojure for the Brave and True" (Page 102) he suggests
using "recur" for performance reasons.
That is, in Olivier's original code, (sorry, without understanding his puzzle):
(defn permutations [s]
continued my above reply... read the "factorial" example in the Wikipedia on
tail recursion to save space and time. Hope it helps!
--
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 tha
https://en.m.wikipedia.org/wiki/Tail_call
Tail call optimization...
--
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
Just my 2-cent suggestion : at your Permutation recursion function, may be try
"recur" instead.
--
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 moder