As in most every language, Scala's if evaluates a conditional expression, then proceeds to a block if the result is true or branches to an alternate block if the result is false. A simple example.
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
In the next block of code I define the concept f: product, defining its preferred label, as well as alternate labels.
在接下来的代码块中,我定义了概念f: product,同时定义了它的优选标签和备选标签。
A new alternate iteration method based on block bordered diagonal model for parallel computation in simulation of electric power system dynamics is presented in this paper.
针对电力系统并行仿真算法中的分块对角加边模型提出了一种新的交替迭代解法。
应用推荐