I tried to send you a /msg, but I am unsure how to do so due to the space in your username. I have a quick pedantic note: you should probably s/array/list/ on your first sentence. 8^)
Even more pedantic is to point out that 0..length($string)-1 does indeed make a list, but I think we know what you meant. ;)
Update: I stand corrected. It might be noted that I knew there was an optimization with for and the range operator, but I thought it still ended up building a list -- I didn't realize it just turned into an iterator.
In reply to Re: Re: foreach (each character in string..)?
by revdiablo
in thread foreach (each character in string..)?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |