The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

eCubeH (4) [Avatar] Offline
I think the filter method could be described a little more directly, as a method that retains only those elements that pass the required criteria, rather than as a method that removes those that fail the condition.

In fact, the description in the method syntax is wrong, I think - it says the method returns a copy of the original wrapped set without the filtered elements, whereas it should be with only the filtered items.

The entire description of parameters etc would be better presented as a direct screening mechanism rather than the indirect, roundabout removal explanation that is there now.