Loops/For with a specified step
With at least two values on the left-hand side, the sequence operator (...
) can infer an arithmetic series. (With at least three values, it can infer a geometric sequence, too.)
for 2, 4 ... 8 {
print "$_, ";
}
say 'whom do we appreciate?';