This time, let’s look at filter.
It does the same thing as List.filter, except it operates on a Set instead of a List.
We’ll have it take a function that checks whether we should include a value and use the output of that function to filter the values from the set.
Continue Reading