How to use range?

How to use range?
I have an example here,
(range 0 4 1)
This function means counts from 0 to 4 but not including 4, the range is 1.
The answer is
(list 0 1 2 3)

Obviously the first and second number give me a limit and the third number is the range. We should all noticed that the second number doesn’t count in the answer.

Comments

Popular posts from this blog

Diana's first blog

How to design a function and how to prepare for the course

Mathematics