vals

vals

美  英

  • 网络瓦尔斯;沃尔斯;生活方式

例句

Since Scala enumerations are just regular objects, you could use any object with vals to indicate different "enumeration values" .

因为Scala的枚举值是通常的对象,你可以使用任何val对象来指示不同的“枚举值”。

I confirm this by iterating over the vals variable, which returns a simple sum.

通过在vals变量上迭代,我确认了这一点,即返回一个简单的sum。

The second argument, vals, is a list of values for the keys that were passed into the function.

第二个参数是vals,这是传递到函数中的键的值列表。

Also, derived types can override vals declared inside parent types.

同时,继承类型可以重写在父类型中声明的值。