Get first element of array

 Problem

I want to get the first element of an Array.



 Recipe


// Initialize the Array
let arr = ["one", "two", "three"]

// Get the first element
let firstElement = arr.first
print(firstElement)
				


 Playground