1 post about
Ruby

Ruby Procs & Lambdas

Ruby Procs & Lambdas thumbnail

Procs and lambdas are commonly confused concepts in the Ruby language. They seemingly serve the same purpose, but have a few significant implementation differences that are crucial to understand. Similarities Procs and lambdas are both useful for inserting blocks of code into methods. Often times the use of either produces interchangeable results. Here are some basic examples where...


Read More