Recently I stumbled across this code block, it’s a for loop, but in print. I was just curious into how this works, and when I could potentially use it. What I know so far is that the first argument is a string, and the second argument is a string.
Code:
for i in print, "Hello world", "" do break end
Output:
Hello world
Code:
for i in print, "Hello world", " Hello World" do break end
Output:
Hello world Hello World