Contact: aviboots(AT)netvision.net.il
39,885 questions
51,811 answers
573 users
var s = "swift java c++ c python" let N = 4 let substring = s.dropLast(N) print(substring) /* run: swift java c++ c py */
var s = "swift java c++ c python" let N = 4 s = String(s.dropLast(N)) print(s) /* run: swift java c++ c py */