News for hackers. Stuff that matters.
Re:Printing 1 to 1000 without loop or conditionals by petercooper on Monday January 03, 2011 @01:45AM (#2062392)
Not entirely dissimilar in Ruby:

  p [*1..1000]
Or being anal about the formatting:

  puts [*1..1000].join ' '

There are no comments on this comment yet.