Consider I have a list with two types of data,one valid and the other invalid.
If I starting filter through this list, can i collect two lists at the end?
Another suggestion: filter using a lambda
that adds the elements that you want to filter out of the stream to a separate list.