æè¿ããããä¸ã§ã«ãªã¼åã«é¢ããè¨äºãèªãã§ããã¨ãç¹ã«Groovyçéã§ã«ãªã¼åã«é¢ãã¦èª¤è§£ãã¾ããéã£ã¦ãããããªã®ã§(ç¹ã«å®ç¨çãªGroovy: ã«ã¬ã¼åã¯ãã¼ã¸ã£ã¼ã«ãããã¡ã³ã¯ã·ã§ãã«ã»ããã°ã©ãã³ã°ã¯ã²ã©ãããããããGroovyã®æ¨æºã©ã¤ãã©ãªèªä½ãã«ãªã¼åãè¡ãããã®é¢æ°ã§ã¯ãªããã®ã«curryã¨ãä»ãã¦ãããä»æ¹ç¡ãã®ãããããã)ãä¸è¨è¨ã£ã¦ããã ã«ãªã¼åã¨ããã®ã¯ãGroovyã§è¨ãã¨ã def add = {x, y -> x + y} ã®ããã«ãxã¨yã¨ããè¤æ°ã®å¼æ°ãåã£ã¦å¤ãè¿ãé¢æ°ã def add = {x -> {y -> x + y}} //ééã£ã¦ãã¼ã¹ã§ããªãã³ã¼ãã«ãªã£ã¦ããã®ã§ä¿®æ£(12/17) ã®ããã«ãä¸ã¤ã®å¼æ°xãã¨ã£ã¦ããyãå¼æ°ã«ã¨ã£ã¦å¤ãè¿ãé¢æ°ããå¤ã¨ãã¦è¿ããããªé¢æ°ã«å¤æãããã¨ããããã¯æåãããã®ããã«è¡¨ç¾ãããã¨ãè¨ã
{{#tags}}- {{label}}
{{/tags}}