Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on (1..100).inject(&:+).
For what it's worth,
(1..100).to_a.sum
works in Rails, though
(1..100).sum
doesn't.
There are no comments on this comment yet.
For what it's worth,
(1..100).to_a.sum
works in Rails, though
(1..100).sum
doesn't.