4 ms·
Swift uses 0-based indexes, but offers, IMHO, a nice choice for specifying ranges, Array(1...5) == [1,2,3,4,5] Array(1..<5) == [1,2,3,4]
by ks2048 2y ago
Swift uses 0-based indexes, but offers, IMHO, a nice choice for specifying ranges,
Array(1...5) == [1,2,3,4,5]
Array(1..<5) == [1,2,3,4]