ã¯ããã« æãã®å¤è©±é¡ã«ãªã£ã¦ãããããªã®ã§ãGroovyã§ã¡ããã¨ããã«ãªã¼åãããé¢æ°ãæ¸ãã¦ã¿ã¾ãããã¡ãã£ã¨ã¿ã¤ãã«ã¯ããã§ããã許ãä¸ããã ãããªæãã§ãããã§ãããï¼ï¼ããã³ã大æè¿ï¼ ããã§ã¯ãaddãå¼æ°ã3ã¤åã£ã¦ãå ç®ããã¯ãã¼ã¸ã£ã§ããã¡ã½ããrealCurryã¯ã¯ãã¼ã¸ã£ãå¼æ°ã«ã¨ããã«ãªã¼åããã¯ãã¼ã¸ã£ãè¿å´ãã¾ãã add = {a, b, c -> a + b + c } âã«ãªã¼åï¼ curriedAdd = {a -> {b -> {c -> a + b + c}}} æ¬å½ã¯Closure.metaClass.getCurryã¨ãã§ããããã£ããã§ããã©ãã©ããdelegateã¾ãããå¤ãªæåãããã®ã§ãããµãªè«¦ãã¾ããããã¨ãé½åã«ããã¢ã³ã«ãªã¼åã¯å®è£ ãã¦ããã¾ãã¬ã foldLeftã§ä½¿ã£ã¦ã¿ã (2011-09-06 追è¨) ã«ãªã¼å != é¨
{{#tags}}- {{label}}
{{/tags}}