[[Swift実践入門]]
#norelated
#contents

* 2.2.1.2 型の確認方法 [#v07ee399]
type(of:)関数で、変数や定数の型を確認できる。

 type(of: 変数名または定数名)

#code(csharp){{
let a = 123
type(of: a) // Int.type
}}


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS