M
Mathias
Hi,
I'm new to this gem called ruby, but having difficulties generating nested
arrays. Why is: var = Array.new(p, Array.new(q, 0)) not the same as:
var = Array.new(p) {Array.new(q, 0)} ?? (I know the later one works, but it
took me ages for figuring this out )
Thnx for your answer.. Mathias
I'm new to this gem called ruby, but having difficulties generating nested
arrays. Why is: var = Array.new(p, Array.new(q, 0)) not the same as:
var = Array.new(p) {Array.new(q, 0)} ?? (I know the later one works, but it
took me ages for figuring this out )
Thnx for your answer.. Mathias