tags:

views:

74

answers:

1

I am getting a 'ArgumentError: array size too big' message with the following code:

MAX_NUMBER = 600_000_000
my_array = Array.new(MAX_NUMBER)

Question. What is the max value that the Array.new function takes in Ruby?

+3  A: 
Jörg W Mittag
Thanks. Yup, working on a lazy load algorithm to solve the problem.
Prakash Murthy