ternary
常見例句
- Note that the [[ key-mapping in the previous example uses an expression containing a C-like "ternary expression"
注意,上例中的 [[ 鍵映射使用了一個(gè)包含類似 C 的 “三元表達(dá)式” 的表達(dá)式 - Because if statements are expressions in Scala, there is no need for the special-case ternary conditional expressions that exist in C-derived languages.
因爲(wèi)在Scala 裡if 語(yǔ)句是一個(gè)表達(dá)式,所以就不需要C 類型子語(yǔ)言的三重條件表達(dá)式了。 - One of these had a particular three-part or ternary pattern attributed to J. S. Bach’s son, Carl Philipp Emanuel Bach (1714–1788), which is now called sonata form.
其中的特定的三部或三元格式,是由巴赫的兒子卡爾.菲利普.伊曼紐爾.巴赫(1714-1788)創(chuàng)作出來(lái)的,這就是現(xiàn)在所謂的奏鳴曲式。 返回 ternary