Swift part9 [無断転載禁止]©5ch.io
■ このスレッドは過去ログ倉庫に格納されています
0680デフォルトの名無しさん (ワッチョイ 833c-AZYz)
2017/01/31(火) 12:46:54.40ID:E6Yo5vL90ジェネリクスの型パラメータ名
http://swiftdoc.org/v3.0/type/Dictionary/
> struct Dictionary<Key : Hashable, Value>
extensionの中では元定義にある型パラメータ(Key, Value)や
Associated Types(Element, Indexなど)が使える
[Int:Int?] は Dictionary<Int,Int?> の糖衣構文
■ このスレッドは過去ログ倉庫に格納されています