[sf-lug] [PYCLASS] Session 3: Monday Oct 6

Alex Kleider a_kleider at yahoo.com
Sat Oct 4 07:43:51 PDT 2008


--- On Fri, 10/3/08, jim <jim at well.com> wrote:
 a very crude iterative tool is provided 
> in the functions that take function names 
> and then repeat them some specific number 
> of times. 
>    would have been interesting to explore 
> a do_twice() function that can be called 
> recursively, which would handle (powers of 
> two) times (doing something) repeatedly. 
> you want 13? somehow combine 
> do_twice(depth = 3) with do_twice(depth = 2) 
> with do_once(). 
>    not that i've coded it. 

Would not your proposed solution require an if statement?
(which is still as of this lesson not available to us.)



      




More information about the sf-lug mailing list