For-in Loops
The for-in loop is used to iterate over each element in an iterable object. The syntax is for (element in sequence) { loop body }. Cangjie's arrays, ranges, and other types all support for-in iteration.
The iteration variable is immutable by default and cannot be modified in the loop body. If you don't need to use the iteration variable, you can replace it with the wildcard _, and the compiler won't produce an "unused variable" warning.
The where clause can filter elements during iteration. for (i in 0..10 where i % 2 == 0) will only iterate over elements that satisfy the condition, which is more concise than using if and continue in the loop body.
Try adding or removing elements from the array and see how the iteration results change.