Swift/Declaration/let

From Azupedia
Jump to navigation Jump to search

定数を定義するときに使用する。変更しない場合は、varよりもこちらを推奨。

let constant name: type = expression

External Link

The Swift Programming language