Advertisement
mentaluproar

why wont this work?

Jan 7th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.17 KB | None | 0 0
  1. let VIN = "123456789ABCDDEFG"
  2. let yeardigitindex = VIN.index(VIN.startIndex, offsetBy: 9)
  3. for yearoffset in VIN[yeardigitindex].utf16 {
  4.     print(1945+yearoffset)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement