On Tue, 12 Dec 2006, Paul L. wrote:
[1,2,3,4,5,6,7,8,9,10,11,12],
data(using pp) in the format above but if column
number is 12 I can’t. To solve this the only thing I
can do is to write another loop(see below) to go
through to the same 2D again.
_2D_array.each{|i| puts i}
Problem: The library ‘pp’ cannot produce the result you want.
Solution: don’t use ‘pp’. Instead, write an additional line of code.
Yes it can. See Eric H.'s reply and my replies, and see pp.rb.
David
[email protected] wrote:
/ …
Problem: The library ‘pp’ cannot produce the result you want.
Solution: don’t use ‘pp’. Instead, write an additional line of code.
Yes it can. See Eric H.'s reply and my replies, and see pp.rb.
You reply says that, with sufficient time and patience, you can make a
library produce a result that can also be produced by an additional line
of
code. Of course I agree, completely and without reservation.
Paul L. wrote:
This principle is especially potent with Ruby, where it is very easy to
solve problems by writing a few lines of code, code you can still
understand months or years later.
Not to pontificate here, but … when a library – the “easy way” –
takes
more time to use than hand coding – the “hard way” – the library loses
its right to exist.
These are just my opinions, reasonable people can and will differ.
I completely agree with you. And thank you all for time and your reply.
Li