Get last element of array


I want to get the last element of an Array.


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

// Get the last element
let lastElement = arr.last

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)