From: Gennady Date: 2003-08-25T03:21:37+09:00 Subject: Re: Why did you switch from Python to Ruby? On Sunday, August 24, 2003, at 03:21 AM, Sabby and Tabby wrote: > Terser: > > x = ARGF.read > puts [x.to_a.size, x.split.size, x.size].join ' ' > > Tersr: > > x=$<.read;puts [x.map.size,x.split.size,x.size]*' ' As somebody have already mentioned, you never stop learning something new about Ruby every day on this list. It is so cool. I never saw any mentioning that String#to_a (and String#map) splits a string into lines. But it really works!!! And [...]*' ' is pretty neat too :-). In a real Judo contest Ruby would get "ippon" within first couple of seconds over JudoScript ;-) Gennady.