Just illustrates the changing structure (increased nesting depth) on each 
recursive call

The initial call to t2 changes the structure of the <rest> argument/parameter - 
it puts in a list where there was no list.

Each recursive call from inside t2 again changes the structure, adding an 
enclosing '() for the <rest> parameter

For the usual (no <rest>) function call It's not an issue for the standard 
car/cdr idiom of walking down recursive structures. 

On Wednesday, September 7, 2016 at 9:28:23 AM UTC-4, Jon Zeppieri wrote:

> On Wed, Sep 7, 2016 at 8:33 AM, Sanjeev Sharma <thro...@gmail.com> wrote:
> Thanks for joining in.
> 
> 
> 
> The amended question had nothing to do with the earlier example
> 
> 
> 
> Okay.
>  
> 
> 
> I'm  wondering if there's a quick, standard (and easily understood) idiom 
> (without an internal helper function) to recur on the variable argument list y
> 
> 
> 
> I'm still not sure what you mean, and I don't understand what your `t2` 
> example is supposed to do.
> 
> 
> 
> -Jon

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to