var fact = Y( function(f) { return function(n) { if(n===0) return 1; else return n * f(n-1); }; } );. 傳給上述函數的f,就是return的那個函數,所以可以用f來做遞迴 ...
確定! 回上一頁