Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
import Foundation let str = "c++ c php javascript rust swift" let words = str.split(separator: " ") if let lastWord = words.last { print("The length of the last word is: \(lastWord.count)") } /* run: The length of the last word is: 5 */