News for hackers. Stuff that matters.
Re:Stack Overflow: Printing 1 to 1000 in C by jluxenberg on Monday March 14, 2011 @03:35PM (#2324041)
puts ((1..1000).to_a.join("\n"))

Which, of course, is passing the buck to Range#to_a

There are no comments on this comment yet.