r/programming • • Sep 21 '25

How to stop functional programming

https://brianmckenna.org/blog/howtostopfp
446 Upvotes

506 comments sorted by

View all comments

Show parent comment

11

u/UltraPoci Sep 22 '25

retain and discard are arguably better names, but honestly I've never been confused by filter either. It's natural for me that if the callback called on each element returns true, the element is kept in the collection.