Re: My attempts in playing with tail-recursion in python

2015-05-17 Thread Fred Spiessens
Hi Thomas, I like what you've been doing. I think it would also be great if the "leave the loop" detector would be the actual stop condition in the recursion, applied to the arguments of the call. That would of course force you to split the recursive function in two functions: one to detect the s

Re: My attempts in playing with tail-recursion in python

2013-08-28 Thread Thomas Baruchel
Le 28-08-2013, Thomas Baruchel a écrit : > The following functions are fully usable; I hope someone will enjoy using > them. > > If you are not interested by the explanations, just jump to the end of the > message and take my functions for using them. Despite the very short size of my function, I

My attempts in playing with tail-recursion in python

2013-08-28 Thread Thomas Baruchel
Hi, I would like to share some of my recent attempts concerning recursivity in python, more precisely recursivity with lambda functions. I know that the title of my thread with the "tail-recursion" words may wake up some long and old war; please don't take it as such. I am not claiming anything a