Re: simple question
Hal Rosser napisa³(a):[color=blue]
>
> If a function returns a value, you can use it *as if* it was the value.
> for instance: if functionX(argX) returns a number, then you can use it like
> this:[/color]
You're talking obvious here. Same thing applies to all functions, no
matter how they're declared.
abc=function(){ return 5} works just the same as
function abc(){return 5}
--
tomasz cenian tcenian at wa dot home dot pl
:::: :: : : http://cenian.boo.pl : : :: ::::
Hal Rosser napisa³(a):[color=blue]
>
> If a function returns a value, you can use it *as if* it was the value.
> for instance: if functionX(argX) returns a number, then you can use it like
> this:[/color]
You're talking obvious here. Same thing applies to all functions, no
matter how they're declared.
abc=function(){ return 5} works just the same as
function abc(){return 5}
--
tomasz cenian tcenian at wa dot home dot pl
:::: :: : : http://cenian.boo.pl : : :: ::::
Comment