I'm happy to see Elixir adopting FP concept here ([identity 
function](https://en.wikipedia.org/wiki/Identity_function)), but I'm not 
sure it's good to add it to `Kernel` (as it's imported by default!) - or 
even in Elixir core.

Why should we add this to Elixir core, instead of "extending" with module?

```elixir
defmodule FP do
  def identity(a), do: a
end

def module YourApp do
  import FP

  def hello do
    'abcdaabccc' |> Enum.sort |> Enum.chunk_by(&identity/1)
  end
end
```

For example, that library can be de-facto helper for such FP utility 
functions.

-- 
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/2e98526b-e83c-4b92-8035-26bce95da822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to