CS 347: Lecture 15 – Higher-order Functions

Dear students:

In this lecture, we hit up higher-order functions, a feature of modern languages that will shorten up your code considerably. Once you know a few of these higher-order functions, you may never write loops again. Why? Because so many of our looping algorithms follow certain patterns, we can generalize those patterns into reusable functions—leaving holes in them for the parts of algorithms that change. Those holes are formalized as parameters, which we fill by passing functions that produce the one-off behaviors.

We’ll be using these higher-order functions frequently when we build React apps.

Here’s your TODO list:

See you next time.

Sincerely,

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *