4 ms·
For first class citizen functions, you want lambdas. Lambdas are a type of Proc but trap the return statement. Blocks are pretty much an iteration construct.
by juliangregorian 12y ago
For first class citizen functions, you want lambdas. Lambdas are a type of Proc but trap the return statement.
Blocks are pretty much an iteration construct.
It's really not that confusing.