21.5. Functional Programming - Part 5 (F 2/19/16)¶
21.5.1. RP 9 part 1¶
Topics of the day:
- Scoping (in general and in JS)
- Static versus dynamic binding
- Higher-order functions
- Closures
- Anonymous functions
The review problem set for today contains four review problems.
This first problem is about higher-order functions and uses closures and anonymous functions. This problem is randomized. You must solve it correctly three times in a row.
21.5.2. RP 9 part 2¶
This problem is about higher-order functions and scoping rules. It uses closures and anonymous functions.
21.5.3. RP 9 part 3¶
This problem uses the same code as the previous problem and illustrates the same topics.
21.5.4. RP 9 part 4¶
This problem uses the same code as the previous two problems but focuses on the difference between static and dynamic binding rules.