Tạo 1 tập hợp rỗng

Arrays:

var results = [Int]()
var rs = Array<Int>()

Sets:

var words = Set<String>()
var numbers = Set<Int>()

Dictionaries:

var teams = [String: String]()
var matches = Dictionary<String: String>()

Leave a reply:

Your email address will not be published.

Site Footer