Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: => 和 () => 在 Scala 中是什么意思
在 Scala 中,=> 运算符有什么作用?例如,在下面的 case 语句中:
myVar match { case 1 => print(num1 + num2) }
“操作符”只是写更冗长的东西的简写方式吗?