Proc & Lambda & Block
In Ruby, Block, Proc and Lambda are all ways to create anonymous functions or code blocks that can be passed around and executed later. Block: π§±π§ Definition: Use Case: Proc: π±π¨βπ³ Definition: Use Case: Lambda: π¦β¨ Definition: Use Case: