Item range/group list/check

I'm using some of my script that use modules where you put in ids.

example:

MAGE = [#,#,#,#,#,#,#,#,#,#]

since a lot of my input is consecutive numbers, so instead of putting in [2,3,4,5,6,7,8] does [2..8] work. I've seen it in other scripts, and am wondering if that is what it means.
2..8 is a Range object which you can enumerate over.

But a Range is not the same as an Array.

You can write

Code:
inputs = 2..8inputs.each {|i|  ...}
Which would be no different in behavior if you had used an array containing the elements from 2 to 8.

Original thread: https://forums.rpgmakerweb.com/threads/item-range-group-list-check.15667/