Introduction
Filter and filterNot help you pick items from a list based on a rule. They make it easy to keep or remove items you want.
You want to get only even numbers from a list of numbers.
You want to remove all empty strings from a list of words.
You want to find all students who passed an exam from a list.
You want to exclude all negative numbers from a list.