【发布时间】:2012-01-13 19:09:44
【问题描述】:
fun curry f x y = f (x, y);
fun uncurry f (x, y) = f x y;
fun compose (f, g) x = f (g x);
我了解 compose 函数,但不太了解 ML 中的 curry 和 uncurry。谁能解释一下这些?
另外,下面两行是什么意思?
(1) compose (compose, uncurry compose)
(2) compose (uncurry compose, compose)
【问题讨论】:
标签: sml higher-order-functions currying ml