You can do this with the understanding:
for x <- 1..10, do: x * 3
[3, 6, 9, 12, 15, 18, 21, 24, 27, 30]
The following values are shown in the example above:
start = 1
length = 10
increment = 3
You need extra brackets for the negative range:
for x <- -1..(-10), do: x * 3
[-3, -6, -9, -12, -15, -18, -21, -24, -27, -30]
source
share