spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Dechoux <>
Subject Rename filter() into keep(), remove() or take() ?
Date Thu, 27 Feb 2014 12:36:53 GMT

It might seem like a trivial issue but even though it is somehow a standard
name filter() is not really explicit in which way it does work. Sure, it
makes sense to provide a filter function but what happens when it returns
true? Is the current element removed or kept? It is not really obvious.

Has another name been already discussed? It could be keep() or remove().
But take() could also be reused and instead of providing a number, the
filter function could be requested.



View raw message