Created
January 1, 2021 13:12
-
-
Save yojkim/aa960acb2a0d6a4a20add72428d8d82c to your computer and use it in GitHub Desktop.
more safe way to access array in swift - 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let arr = [1, 2, 3, 4] | |
arr[4] // Fatal error: Index out of range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment