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