simple conditional expression
常見例句
- 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
和大多數(shù)語(yǔ)言一樣,Scala 的if 測(cè)試一個(gè)條件表達(dá)式,然後根據(jù)結(jié)果爲(wèi)真或假來跳轉(zhuǎn)到響應(yīng)語(yǔ)句塊中。 返回 simple conditional expression