functional programming
an advanced topic; an alternative to iteration and recursion
In CS8, we present lots of problems that use the accumulator pattern with a for loop; this method of problem solving is known as iteration.
An alternative method that we sometimes cover is recursion.
For many problems, there is a third approach using a method using tools from a technique known as functional programming.
- This is typically not a topic covered in CS8.
- This material is probably not to be needed for your homework, labs, or exams (unless your instructor indicates otherwise, which is again, unlikely).
- It is provided ONLY for students that are already feeling confident with the core CS8 material and would like an additional challenge.