2009-11-25 86 views

回答

0
var x = AnotherFunction(ReturnFunction(someVariable)); 

其中AnotherFunction()接受相同类型ReturnFunction()回报。

大多数现代语言都允许这样做。

3

你的意思是像下面的C代码:

int foo(void) { 
    return 4; /* XKCD standard random number */ 
} 

int bar(void) { 
    do_something(2,foo()); 
    return 0; 
} 

这已无关,与函数式编程

0

在Haskell中,

x . f . g 5 
相关问题