Re:(1..100).inject(&:+)
by Xichekolas on Monday February 25, 2008 @03:22PM
(#123299)
It won't work unless your web-based interpreter runs Ruby 1.9, or you also paste in his monkeypatch to the Symbol class.
[ Parent
| on HN ]
I refuse to be blamed for Symbol#to_proc, it's a part of Rails and also Ruby Facets.
Re:(1..100).inject(&:+)
by Xichekolas on Monday February 25, 2008 @03:47PM
(#123328)
Yeah I didn't mean to blame you... I actually like it, so consider it a complement, but it was just the easiest way to describe what patch I was talking about, since you had it in your article.
Any idea who specifically wrote it initially?