2014-12-28から1日間の記事一覧
Swiftべんきょうきろく、その4、です。 Enumerations and Structures 列挙型を作りたいときはenumを使う。 一番シンプルな形は以下のような感じだろうか。 enum EnumTest { case Zero, One, Two, Three } EnumTest.Zero.hashValue // 0 EnumTest.One.hashVa…
Swiftべんきょうきろく、その4、です。 Enumerations and Structures 列挙型を作りたいときはenumを使う。 一番シンプルな形は以下のような感じだろうか。 enum EnumTest { case Zero, One, Two, Three } EnumTest.Zero.hashValue // 0 EnumTest.One.hashVa…