Closed giann closed 3 months ago
Ranges are syntaxic sugar to create list of integers. But when used in a foreach statement it should be expanded to a classic for statement:
foreach
for
foreach (int i in 0...n) { | ... }
should be syntaxic sugar for:
for (int i = 0; i < n; i = i + 1) { | ... }
Ranges are syntaxic sugar to create list of integers. But when used in a
foreach
statement it should be expanded to a classicfor
statement:should be syntaxic sugar for: