nil output

WKC CCC said the following on 02/05/2007 12:53 PM:

Hi,

Is there an easy way to change the way ruby outputs nil's. Such that "" is output instead? The reason for this, is due to the amount of space a large array can occupy if containing several thousand empty cells as opposed to one which prints out "".

Why don't you use a "sparse array"? Any CompSci textbook will discuss this.

How do you think spreadsheet programs like Excel store so many cells on small Windwos machines?