2018-04-17から1日間の記事一覧
Tuple ( タプル ) let product: (String, Int) = ("Swift", 2015) let kingaku = (1000, 80) // 型推論で(Int, Int)に決まる kingaku = (1060, "hoge") // error: cannot call value of non-function type '(Int, Int)' let data = (1000, 80) let (price, _…