Now it’s time to work that gray matter! Do the following exercises to be sure you have grasped the concepts that were presented in this chapter. Don’t skip this!
What is the definition of a closure?
Identify the free variable in the following:
|||lambda do |a||
|||a > amount|
Here’s an example run:
|||>> larger_than_5 = is_larger_than(5)|
You work in a music store and you’ve been tasked with writing a miniature database to store artists and album titles. The database should be able to insert, delete, and list entries, but you cannot use objects ...