Re: [elixir-core:6604] Proposal: Enum.reject for Enum.compact

2016-11-18 Thread Peter Hamilton
Bruce: As pointed out previously, It's a bad default for Enum.reject. It would leave you with just the nil values. It might be an ok default for Enum.filter though. On Fri, Nov 18, 2016 at 1:01 PM Bruce Tate wrote: > The identify function is effectively already the default for Enum.all? and > an

Re: [elixir-core:6603] Proposal: Enum.reject for Enum.compact

2016-11-18 Thread Bruce Tate
The identify function is effectively already the default for Enum.all? and any?, and a few others as well. Why not make it the default for Enum.reject too? -bt On Thu, Nov 17, 2016 at 4:13 PM, OvermindDL1 wrote: > Yeah you could do `&(&1)` or so for an inline identity, though definitely > not