This lesson teaches filter, one of the three basic functional tools. It includes a video lesson with visual aids. And I’m adding the exercises soon. The video lesson is 13 minutes long.
Parts of courses on specific topics
In the third lesson in Recursion 101, we define another common recursive function, filter. This lesson includes a video screencast and some code. The lesson is 3 minutes long.
In the fifth lesson in Recursion 101, we rewrite filter to be tail recursive. This lesson includes a video screencast and some code. The lesson is 8 minutes long.
We make a list of things that is so long, we need to have a text box at the top that lets us filter it. We experiment with different filtering techniques.
We got started on a grammar in the last lesson. Now we’ll finish it.
A useful access pattern is to add stuff on one and and take it off the other end. This gives you a way to take stuff off in the same order you put it in on, like a queue. Clojure provides a collection called Queue for just that purpose.