spiral_code

Interesting/magical techniques for adding to_proc functionality to a variety of Ruby objects, e.g.

[1,2,3,4,5].map &[:to_s, 2]  # => ["1", "10", "11", "100", "101"]

Blog comments powered by Disqus