我想知道为什么Haskell设计师同意只允许10个级别的优先级?有人发现它不够吗?
如何在Scala中创建匿名和curried功能?以下两个失败:
scala> (x:Int)(y:Int) => x*y
<console>:1: error: not a legal formal parameter
(x:Int)(y:Int) => x*y
^
scala> ((x:Int)(y:Int)) => x*y
<console>:1: error: not a legal formal parameter
((x:Int)(y:Int)) => x*y
^
Run Code Online (Sandbox Code Playgroud)