gistlib
main.swiftlet arr = ["apple", "banana", "orange"] let secondElement = arr[1] // Note that Swift uses zero-based indexing, so the second element is at index 1 print(secondElement) // Output: "banana" 189 chars4 lines
let arr = ["apple", "banana", "orange"] let secondElement = arr[1] // Note that Swift uses zero-based indexing, so the second element is at index 1 print(secondElement) // Output: "banana"
gistlibby LogSnag