JavaScriptã§ã«ãªã¼åããããã¡ãã¤ããå®éã«ããã§ãããããå°ãã¿ã¨æã£ã¦ããã¯ãããããæå¤ã¨æ··ä¹±ãããä¸ç¨®ã®ã¡ã¿ããã°ã©ãã³ã°ã®ã¯ãã ããå®éã«ã¯ããã¹ãå å·¥å¦çã å
å®¹ï¼ ã«ãªã¼åã£ã¦ãªã«ï¼ ã«ãªã¼åãè¡ãé¢æ°ãä½ãï¼æºå ã«ãªã¼åãè¡ãé¢æ°ãä½ãï¼ããã¹ãã®ãããã¯ã¼ã¯ ã«ãªã¼åãè¡ãé¢æ°ãä½ãï¼çµã¿ç«ã¦ âã«ãªã¼åã£ã¦ãªã«ï¼ 2å¼æ°ã®é¢æ°f(x, y)ã«å¯¾ãã¦ããgãfã®ã«ãªã¼åãã ã¨ã¯ãf(x, y) = g(x)(y) ã常ã«æç«ããã㨠-- ã´ãã£ã´ãã£èª¬æããããå®ä¾å®ä¾ï¼ functio sum(x, y) { return x + y; } ãã®sumã®ã«ãªã¼åã®ä¾ï¼ function curried_sum(x) { return function (y) {return sum(x, y);} } curreid_sumé¢æ°ã¯1å¼æ°ã§ãæ»ãå¤ã¨ãã¦é¢æ°
{{#tags}}- {{label}}
{{/tags}}