I have an integer with a value
I want to create an array with nil values representing this integer
For example:
i = 5
# The result i want is
[nil, nil, nil, nil, nil]
What is the most Ruby way of doing this? Aka, the shortest way. Without need of looping et c.