The task appears simple, but i am struggling to get the way of initializing a vector (array, collection, or similar) of ranges. That is, I need to do something like this:
vec_of_ranges = HOW TO INITIALIZE THIS?
for i=1:10
range = i:20
vec_of_ranges[i]=range
end
Can anyone give me a hint on how to do this? I need it so I can then evaluate a given array on that collection of ranges...
Thanks in advance!