[Tutor] Apply()

Erik Price erikprice@mac.com
Thu Feb 6 08:02:35 2003


On Thursday, February 6, 2003, at 02:45  AM, Danny Yoo wrote:

> The part that would normally involve 'apply()' is the line:
>
>     print cmds[c](*rest)
>
>
> With apply(), that might look like:
>
>     print apply(cmds[c], rest)
>
>
>
> Hope this helps!

Yes, I think I understand ... you can just add parens to the end of any 
name and, if a function has been defined with that name, it will be 
called?

Thanks!


Erik





-- 
Erik Price

email: erikprice@mac.com
jabber: erikprice@jabber.org