ã¾ãåæã¨ãã¦ãã¡ããã¨å¦ã¶ãªãèªåã«ãªã¼åããµãã¼ããã¦ãhaskellãªãOCamlãªãF#ãªãã§å¦ã¶ã»ããæç¶ããã¨æãã¾ãã ã«ãªã¼åTLã ã£ãã®ã§ èªåã®ç解ãæ£ãããã©ããå確èªã # ããããé¢æ°ãããã¨ãã def multiply(x, y): return x * y # ãããã«ãªã¼å curried_multiply = lambda x: lambda y: x * y print curried_multiply(2)(3) #-> 6 # lambda使ããªããªããã def curried_multiply_d(x): def _curried_multiply_d(y): return x * y return _curried_multiply_d print curried_multiply_d(2)(3) #-> 6 # ãã£ã¡ãé¨åé©ç¨ from
{{#tags}}- {{label}}
{{/tags}}