No need for the anonymous lambda function. Simply filter with a boolean statement. Also, notice the use of the bitwise operator, &, not boolean operator, and. Below are equivalent variants to filtering: