The code in the FAQ uses a C-style for loop to iterate through the entire array. Your code uses a foreach loop with a single element list and only makes one swap in the array.
In reply to Re: Neanderthal Boggle
by chipmunk
in thread Neanderthal Boggle
by gaspodethewonderdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |