正在加载图片...
Curried functⅰonS Note difference between 入X.xy.x-y and int f (int x, int yi return x-y; n abstraction is a function of 1 parameter But computationally they are the same(can be transformed into each other Curry: transform n(x,y). x-y to nx. ny x-y Uncurry: the reverse of curryCurried functions • Note difference between •  abstraction is a function of 1 parameter • But computationally they are the same (can be transformed into each other) • Curry: transform (x, y). x-y to x. y. x - y • Uncurry: the reverse of Curry x. y. x - y and int f (int x, int y) { return x - y;}
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有