4 ms·
I often encounter this problem in the form of newbies asking how to dynamically create variables inside a loop: "foo1 on the first iteration, foo2 on the secon
by aib 7y ago
I often encounter this problem in the form of newbies asking how to dynamically create variables inside a loop:
"foo1 on the first iteration, foo2 on the second, etc."
As much as I am a fun of weird little endeavors like programmatically modifying the local scope, my answer is usually along the lines of "...arrays."