I am new to Objective-C, I have a decent understanding of Ruby.
I want to have a list / array of numbers going from 1, 2, 3, ... up to x (x is the maximum defined elsewhere in my code).
What is the best way to do this (x can be a large number in millions, so manually entering each integer would be undesirable). The rooms are in normal sequence.
In Ruby, I would write something like this:
y = [1..x]
source share