- 论坛徽章:
- 0
|
原帖由 win_hate 于 2009-3-29 17:23 发表
>> 改了一下标题,锁定 haskell 语言,不是太了解其他函数式语言。
我没说其它语言啊
恩,上面是我理解有误
yaht 中 4.4.2 节 Higher-Order Types 有说:
- (+) :: Num a => a -> a -> a
- + is a function which, for some type a which is an instance of Num, takes a value of
- type a and produces another function which takes a value of type a and produces a value
- of type a. In short hand, we might say that + takes two values of type a and produces a
- value of type a, but this is less precise.
复制代码
这种说法是只用于
说明函数的类型
还是
也说明函数的执行过程呀?
[ 本帖最后由 izhier 于 2009-3-29 18:03 编辑 ] |
|