Array#values_at fails for large argument size
Say I have this Array:
a =  * 140_000
Now, I call Array#values_at in this way:
I get this error:
Exception: SystemStackError: stack level too deep -- 0: (pry):6:in `__pry__'
Updated by v0dro (Sameer Deshmukh) almost 3 years ago
Nobuyoshi Nakada wrote:
Arguments consume the system stack.
Why not modify the function slightly such that it can also accept an Array containing index numbers as an argument? That way there won't be a need to specify so many arguments.