最終更新:2024-05-07 (火) 14:31:07 (130d)
Swift/シンタックスシュガー
Swift/[
Swift/配列
[<#type#>]
- 下記は同等
let someArray: Array<String> = ["Alex", "Brian", "Dave"] let someArray: [String] = ["Alex", "Brian", "Dave"]
Swift/辞書
[<#key type#>: <#value type#>]
- 下記は同等
let someDictionary: [String: Int] = ["Alex": 31, "Paul": 39] let someDictionary: Dictionary<String, Int> = ["Alex": 31, "Paul": 39]
Swift/?
- Optional<Wrapped>