Greetings!
When assigning a value to an array as in the following, how could I replace the nils by 0?
nil
0
array = [1,2,3] array
a.select { |i| i }
This answer is too short so I am adding a few more words.