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 測試一個條件表達式,然後根據(jù)結(jié)果爲真或假來跳轉(zhuǎn)到響應(yīng)語句塊中。