Slight mod here: reduce() would be a slightly more appropriate function to use (over fold()), as the input and output types of the accumulator function are identical (both Filter). Doesn’t really matter which you use, but is slightly more FP-tastic 🙃