プログラミング★さがして!
Home
Wiki
BBS
About
Contact
開始行:
[[Swift実践入門]]
#norelated
#contents
* 2.2.1.2 型の確認方法 [#v07ee399]
type(of:)関数で、変数や定数の型を確認できる。
type(of: 変数名または定数名)
#code(csharp){{
let a = 123
type(of: a) // Int.type
}}
終了行:
[[Swift実践入門]]
#norelated
#contents
* 2.2.1.2 型の確認方法 [#v07ee399]
type(of:)関数で、変数や定数の型を確認できる。
type(of: 変数名または定数名)
#code(csharp){{
let a = 123
type(of: a) // Int.type
}}
ページ名: