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.
针对电力系统并行仿真算法中的分块对角加边模型提出了一种新的交替迭代解法。
In fact, the movement of the fault block in the deformation field controls the alternate slips of intersecting faults.
交叉断层的交替活动实际上由变形场中块体的运动所控制。
In fact, the movement of the fault block in the deformation field controls the alternate slips of intersecting faults.
交叉断层的交替活动实际上由变形场中块体的运动所控制。
应用推荐