ranges - TheBuzzSaw/KellyScript GitHub Wiki
Range syntax expresses a tuple consisting of a low value and a high value. It is expressed as low to high
such as 1 to 3
.
for (x in 1 to 8) Electrify(x);
for (x in values[0 to 3]) Dazzle(x);
switch (value)
{
case (0 to 7) Blam(value);
case (8 to 11, 13, 22 to 39) Zap(value);
}
if (value in 9 to 40) Explode(value);