以åããJavaScript ã§å¼æ°æç¸ãã«ããã¦é¢æ°ã®ã«ãªã¼åã試ã¿ã¾ãããããããããã§ã«ãªã¼åãããé¢æ°ã¯ããã®ã¾ã¾ã§ã¯ä¸åº¦ããé¨åé©ç¨ãã§ãããã¾ããæåã®é¢æ°å¼ã³åºãã¯å¿ ãé¨åé©ç¨ã¨ãã¦æ±ããã¦ãã¾ããã function mean3(a, b, c) { return (a + b + c) / 3; } // ãJavaScript ã§å¼æ°æç¸ãã«ããã curry é¢æ°ã var curriedMean3 = curry(mean3); curriedMean3(1)(2, 3); // => 2 curriedMean3(1)(2)(3); // => TypeError: curriedMean3(1)(2) is not a function // ãã®ã¾ã¾ã§ã¯é¨åé©ç¨ã 2 å以ä¸è¡ããªãã // curry(curriedMean3(1))(2)(3) ãªã大ä¸å¤«
{{#tags}}- {{label}}
{{/tags}}