Hello, first of all, loved this exercise. but I couldn’t’ figure out the, the for in loop, out and had to reference the solution code. Solution Code,
I am looking for an explanation of the 2 dots and less than, are used in the for in loop. “…<” at lines 10 & 12 (follow Git link) or cut and pasted code below.
Thanks for any tips or help understanding that.
Hope my question makes sense.
Thanks🙏
for i in 0 ..< message.count {
for j in 0 ..< alphabet.count {
if message[i] == alphabet[j] {
message[i] = alphabet[(j+3) % 26]
break