J
Junkone
i have a array of arrays. i want to empty the first 2 child arrays.
how do i do it.
irb(#<Object:0x35208e8>):049:0> c=$stockTrades[0]
=> [[], [], ["BRKR", "2008-09-09, 11:08:28", "ISLAND", "-200",
"16.1000", "3,220.00", "-1.00", "3,446.688", "-1.0704", "0.00", ""],
[]]
irb(#<Object:0x35208e8>):050:0> c
=> [[], [], ["BRKR", "2008-09-09, 11:08:28", "ISLAND", "-200",
"16.1000", "3,220.00", "-1.00", "3,446.688", "-1.0704", "0.00", ""],
[]]
irb(#<Object:0x35208e8>):051:0> c[0]
=> []
irb(#<Object:0x35208e8>):052:0> c.delete(0)
=> nil
irb(#<Object:0x35208e8>):053:0>
how do i do it.
irb(#<Object:0x35208e8>):049:0> c=$stockTrades[0]
=> [[], [], ["BRKR", "2008-09-09, 11:08:28", "ISLAND", "-200",
"16.1000", "3,220.00", "-1.00", "3,446.688", "-1.0704", "0.00", ""],
[]]
irb(#<Object:0x35208e8>):050:0> c
=> [[], [], ["BRKR", "2008-09-09, 11:08:28", "ISLAND", "-200",
"16.1000", "3,220.00", "-1.00", "3,446.688", "-1.0704", "0.00", ""],
[]]
irb(#<Object:0x35208e8>):051:0> c[0]
=> []
irb(#<Object:0x35208e8>):052:0> c.delete(0)
=> nil
irb(#<Object:0x35208e8>):053:0>