Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The foreach statement Is an iterationiterator. This statement would execute the entire rule three times with the variable x bound to 1, 2, and 3 in each successive execution. A second name is optional in the setting clause. Here, the name i will be bound to the index of each array element, i.e. 0, 1, and 2 in each successive execution.

...