What was new in this chapter?
Creating Procs with
Using Procs as arguments to methods
Using blocks as arguments to methods, including your own new methods
Using Procs as first-class functions
lambdas within other
I have a confession to make. I love object orientation for many programming tasks, but this chapter about Ruby’s functional heritage was the most fun to write so far. Functional programming has been respected in academia for decades, and it is starting to get some well-deserved attention from folks in the computer programming industry and others who are just curious about what it can do. Now that we know some functional programming techniques, let’s put them to use ...