Skip to content

Instantly share code, notes, and snippets.

@Concers
Created May 15, 2022 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Concers/19bbcc38ba5675bb31779b314ef45d65 to your computer and use it in GitHub Desktop.
Save Concers/19bbcc38ba5675bb31779b314ef45d65 to your computer and use it in GitHub Desktop.
var values: [Int] = [0, 1, 2, 3]
print(values)
print("Values count : \(values.count)")
// print(values[9]) index out of range
// [0, 1, 2, 3]
// Values count : 4
//Empty Array
var emptyArray: [Int] = []
print(emptyArray)
print(emptyArray.count)
// []
// 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment