Close
Register
Close Window

F17 OpenDSA entire modules

Chapter 21 Functional Programming

Show Source |    | About   «  21.4. Functional Programming - Part 4   ::   Contents   ::   21.6. Functional Programming - Part 6  »

21.5. Functional Programming - Part 5

21.5.1. RP 9 part 1

Topics of the day:

  1. Scoping (in general and in JS)
  2. Static versus dynamic binding
  3. Higher-order functions
  4. Closures
  5. 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.

   «  21.4. Functional Programming - Part 4   ::   Contents   ::   21.6. Functional Programming - Part 6  »

nsf
Close Window