logoalt Hacker News

pavlovyesterday at 10:07 PM1 replyview on HN

Maybe those two could be filter_for (the “where” case) and filter_out.


Replies

listenallyalltoday at 3:50 AM

Kotlin has filter and filterNot (it also has separate "reduce" and "fold" functions, dependingon whether you want to specify an initial accumulator value or not)