タプル
Speaker Notes
This slide should take about 5 minutes.
-
配列と同様に、タプルの長さは固定されています。
-
タプルは、異なる型の値を複合型にグループ化します。
-
タプルのフィールドには、ピリオドと値のインデックス(例:
t.0
、t.1
)でアクセスできます。 -
The empty tuple
()
is referred to as the “unit type” and signifies absence of a return value, akin tovoid
in other languages.