The foreach
statements enables iteration over list or map. The foreach
statement also sets the the global variable __count
to indicate how many iterations it has performed so far.
Input | Output | |
---|---|---|
|
123 |
|
|
123 |