I opened a PR (https://github.com/elixir-lang/elixir/pull/13758) but Valim 
asked me to post here first to get feedback for the community. The gist is 
turning code like this:

x
|> then(fn val ->
  if pred(&1) do
    f(val)
  else
    val
  end)

Into this:

x |> then(&f/1, if: &pred/1)

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/d37001ec-97c5-472d-ad26-daa7eb8b1f5an%40googlegroups.com.

Reply via email to