Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 answers
573 users
let s = "swift java python c c++" let N = 5 let r = s.index(s.startIndex, offsetBy: 0)..<s.index(s.startIndex, offsetBy: N) let substring = s[r] print(substring) /* run: swift */