What's the difference between type1 -> type2 -> type3 and type1 -> (type2 -> type3)?

后端 未结 0 1444
感情败类
感情败类 2020-12-14 22:18

Why

let f1 a b = a + b

and

let f2 a = fun b -> a + b 

both produce values with type a:int -> b:in

相关标签:
回答
  • 消灭零回复
提交回复
热议问题