Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Understanding Ruby Blocks, Procs and Lambdas. Parent comment
You can no longer call yield(...) but instead you have to use bl.call(...)
You can indeed save the Proc object and use it later.
There are no comments on this comment yet.
You can no longer call yield(...) but instead you have to use bl.call(...)
You can indeed save the Proc object and use it later.