Scala allows you to decide whether a variable is immutable (read-only) or not (read-write) when you declare it.
当你声明一个变量的时候,Scala允许你来决定它是不变的(只读的)还是可变的(可读写的)。
If the range variable is not an immutable type, the query will only ignore a query result if all members of the type match an existing query result.
如果范围变数并非不变的型别,则只有当型别的所有成员都符合现有的查询结果时,查询才会忽略查询结果。
If the range variable is not an immutable type, the query will only ignore a query result if all members of the type match an existing query result.
如果范围变数并非不变的型别,则只有当型别的所有成员都符合现有的查询结果时,查询才会忽略查询结果。
应用推荐