Oops, you're right—the to_list should precede the filter.


On Wed, Jan 22, 2014 at 9:21 AM, José Valim <notifications@github.com>wrote:

> In lib/elixir/lib/exception.ex:
>
> > @@ -216,35 +216,46 @@ defmodule Exception do
> >    @doc """
> >    Receives a tuple representing a stacktrace entry and formats it.
> >    """
> > -  def format_stacktrace_entry(entry)
> > +  def format_stacktrace_entry(entry) do
> > +    format_stacktrace_entry_into_fields(entry)
> > +    |> Enum.filter(&(&1))
>
> But this is not filtering the first entry. &1 in this case is always the
> tuple, no?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/elixir-lang/elixir/pull/2011/files#r9083017>
> .
>