Pp with array

e$B$M$P$?$G$9!#e(B

pp ( pretty print ) e$B$NF0:n$N%P%0Js9p$G$9!#e(B

require ‘pp’
a=[[0, 1, 2, 3, 4], [1, 2, 3, 4, 5], [2, 3, 4, 5, 6], [3, 4, 5, 6, 7]]

e$BK>$`7k2L$O!"e(B
pp a => [[0, 1, 2, 3, 4], [1, 2, 3, 4, 5], [2, 3, 4, 5, 6], [3, 4, 5, 6,
7]]

e$B$H$3$m$,!"e(B
ruby 1.9.0 (2006-06-20) [i386-bccwin32]
pp a => [0, 1, 2, 3, 4]
e$BG[Ns$rBP>]$Ke(B pp e$B$7$?>l9g!"Bh#1MWAG$7$+JV$7$F$$$J$$$h$&$G$9!#e(B

e$B$A$J$_$K!“e(B
ruby 1.9.0 (2006-05-26) [i386-bccwin32]
e$B$G$O!”@5$7$/=PNO$5$l$^$9!#e(B

e$B#67n#1#0F|0J9_$K%P%0$,[email protected]$h$&$G$9!#e(B

e$B$H$j$"$($:$*CN$i$;$^$G!#e(B

e$B$*$5$o$,$;$7$^$7$?!#e(B
[ruby-dev:28747] e$B$HF1$87o$G$7$?!#e(B
e$B$h$/D4$Y$b$7$J$$$GEj9F$9$k$N$O!";22C;q3J$,$J$$$G$9$M!#e(B
e$B?=$7Lu$"$j$^$;$s$G$7$?!#e(B

e$B$M$P$?e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28801] Re: pp with array”
on Fri, 23 Jun 2006 01:20:51 +0900, “Nebata” [email protected]
writes:

|[ruby-dev:28747] e$B$HF1$87o$G$7$?!#e(B
|e$B$h$/D4$Y$b$7$J$$$GEj9F$9$k$N$O!";22C;q3J$,$J$$$G$9$M!#e(B

e$B$=$s$J$3$H$O$"$j$^$;$s$h!#e(B
e$B$J$*!"$3$NLdBj$Oe(B21e$BF|$KD>$7$F$^$9!#e(B

e$B$M$P$?$G$9!#e(B

e$B$J$*!"$3$NLdBj$Oe(B21e$BF|$KD>$7$F$^$9!#e(B
e$BAaB.3NG’$7$^$7$?$,!"$^[email protected]>$C$F$$$J$$$h$&$G$9!#e(B

ruby 1.9.0 (2006-06-23) [i386-bccwin32]

e$BDs0F$G$9$,!"e(Bsample\test.rb
e$B$K0J2<$NJ8$rDI2C$7$F$_$F$OG!2?$G$7$g$&$+!#e(B

require ‘pp’
a = [1,2]; test_ok( pp(a) == [1,2])

e$BB>$N;n839`L$H$A$g$C$H0[$J$k!J=EMWEY!’>.!K$N$G!"e(B
e$BIUB0%i%$%V%i%jMQ$GJLESMQ0U$9$Y$-$J$s$G$7$g$&$M!#e(B

[email protected]$G$9!#e(B

At Sat, 24 Jun 2006 01:12:00 +0900,
Nebata wrote in [ruby-dev:28815]:

e$BDs0F$G$9$,!"e(Bsample\test.rb e$B$K0J2<$NJ8$rDI2C$7$F$_$F$OG!2?$G$7$g$&$+!#e(B

require ‘pp’
a = [1,2]; test_ok( pp(a) == [1,2])

ppe$B$NLa$jCM$O$b$H$b$He([email protected])$7$J$$$O$:$G$9$,!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs