function F(e)
{
return
function(){P(e) }
}
Can anybody tell me what the code is doing?
If return another function all in a function I would do
function F(e)
{
return P(e)
}
Is it defining another function? I don't recall other languages can
define another function inside one function. Why would the programmer
do this?
{
return
function(){P(e) }
}
Can anybody tell me what the code is doing?
If return another function all in a function I would do
function F(e)
{
return P(e)
}
Is it defining another function? I don't recall other languages can
define another function inside one function. Why would the programmer
do this?
Comment