SyntaxFix
Write A Post
Hire A Developer
Questions
Or without closures you can do just this in Swift 2:
let fullName = "First Last" let fullNameArr = fullName.characters.split(" ") let firstName = String(fullNameArr[0])