以上来源于: WordNet
The function f is type as a function that takes a single input parameter of type View (another class from Android) and returns Unit, which is the Scala equivalent of void.
这个函数 f 的类型为带一个 View 类型(Android 中的另一个类)的输入参数的函数,并返回 Unit,它是 void 在 Scala 中的对等物。
In particular, the common practice of declaring main with a return type of void is simply incorrect.
尤其是,通常以void为返回类型声明main的习惯是完全错误的。
On the other hand, if the method on the server-side component has a void return type, then you can disregard this optional parameter.
另一方面,如果服务器端组件上的方法具有一个空返回类型,则可以忽略此可选参数。
应用推荐