Posterous Spaces is no longer available Thanks to all of my @posterous peeps. Y'all made this a crazy ride and it was an honor and pleasure working with all of y'all. Thanks to all of the users. Thanks to the academy. Nobody will read this.
ã ãã¶åã«ãã¯ãã¼ã¸ã£ï¼éå ï¼ã£ã¦è¨èã®æå³ãããããªãã¨æ¸ãããã¨ãããã¾ãï¼ãã¯ãã¼ã¸ã£ããããªã«ï¼ãï¼ãæè¿ã¾ããã¯ãã¼ã¸ã£ãã£ã¦è¨èãèããã®ã§ããããã£ã±ãä½ãæå³ãã¦ããã®ãããããªãã¦ï¼è©®ç´¢ããä½è£ããªãã¦ï¼è½ã¡çããªãæ°åã«ãªãã¾ãããããã¯ã©ããç²¾ç¥è¡çä¸ãããªãã ãã¯ãã¼ã¸ã£ãã¨ãã©ã ãå¼ãã¯ã¾ã£ããå義ã«æ±ã£ã¦ãããããããªãã®ããªãä¾ãã°ã©ã ãå¼ Î»x.(a*x + b) ãããã¨ããèªç±å¤æ°a, bãå ·ä½åããããã®ç°å¢ï¼å¤æ°æç¸ï¼ãã©ã ãå¼ã¨ä¸ç·ã«ãã (λx.(a*x + b), {a : 2, b : 1}) ãå¤å ¸çãªæå³ã®ã¯ãã¼ã¸ã£ã§ããããã¶ããletã使ãã°ã(let a = 2 b = 1; λx.(a*x + b)) ã¿ããæ¸ãããã©ããããçµå± (λa.λb.(λx.(a*x + b)))(2)(1) ã ãã1åã®ã©ã ãå¼ã§ãããã ãã¯ãã¼
ã¯ãã¼ã¸ã£ã®ä»çµã¿ãç解ãã ã¹ã³ã¼ãã«ã¤ãã¦ç解ããã¨ããã§ãæ¬ç¨¿æå¾ã®ãã¼ãã¨ãã¦ãã¯ãã¼ã¸ã£ãã«ã¤ãã¦è§¦ãã¦ãããã¨ã«ããããã¯ãã¼ã¸ã£ã¨ã¯ãã²ã¨è¨ã§ãããªãã°ãããã¼ã«ã«å¤æ°ãåç §ãã¦ããé¢æ°å é¢æ°ãã®ãã¨ã ãã£ã¨ããããã ãã®èª¬æã§ã¯ãªããªãã¤ã¡ã¼ã¸ãããã«ããã¨æãã®ã§ãå ·ä½çã«ã¯ãã¼ã¸ã£ãå©ç¨ããã³ã¼ãã1ã¤æãã¦ã¿ããã function myClosure(init) { var cnt = init; return function() { return ++cnt; } } var result = myClosure(10); ï¼»Aï¼½ window.alert(result()); // 11 ï¼»Bï¼½ window.alert(result()); // 12 ï¼»Cï¼½ window.alert(result()); // 13 ï¼»Dï¼½ ä¸è¦ããã¨ãmyClosur
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}