[plt-scheme] Does the procedure know who called it and how manytimes?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Fri Jul 27 22:28:29 EDT 2007

Chongkai Zhu wrote:
> In this case, I suggest you to have the SIZE function take one more 
> arguments, which tells whether it is called by itself or not (and if 
> you need, how many times it calls itself).

You can let this extra argument have a default value, say 0 or #f (by 
using opt-lambda), so other functions that call your SIZE don't even 
have to notice its existence.

> Chongkai
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.