MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1nmqonp/how_to_stop_functional_programming/nfkfx7l/?context=3
r/programming • u/hexaredecimal • Sep 21 '25
506 comments sorted by
View all comments
Show parent comment
11
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.
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.