此專案示範 Swift 的常數與變數。
於 64 位元 Mac 執行 range.swift ,如下
$ swift range.swift
9223372036854775807
-9223372036854775808
18446744073709551615
$
於 64 位元 Mac 執行 literal.swift ,如下
$ swift literal.swift
0
0.0
true
str
[]
[1]
[2, 1]
[:]
$
於 64 位元 Mac 執行 countdown.swift ,如下
$ swift countdown.swift
10
9
8
7
6
5
4
3
2
1
$