From: Devin Mullins Date: 2006-09-25T03:07:33+09:00 Subject: Re: Help w/ Codegolf Total Triangles- reading input dblack@wobblini.net wrote: >> a=readlines.each{|i|i.split(" ").each{|j|j=j.to_i}} > That just assigns the lines you've read in, unchanged, to a. That was a paste-o on my part. My point was that the functional means of doing things don't tend to golf well. Compare: a.map{|b|b.to_i}.each{|c|} a.each{|b|c=b.to_i} Devin