I use `Enum.group_by([1, 1, 2, 3, 4, 4], &(&1))` to count the number of 
item apparence once for a while, so identity definately help on reveal the 
intension.

Talking about the length of code, Haskell name this function `id/0`, so 
maybe we can consider `Function.id/1` if it's not too misleading.

Wondering if anyone working on this or it's still in discussion, if not I'm 
more then glad to send a PR either you guys like `Function.id/1` or 
`Function.identity/1`

José Valim於 2019年8月2日星期五 UTC+8下午11時13分02秒寫道:
>
> Precisely. In any case, a PR for Function.identity/1 would be appreciated.
> -- 
>
>
> *José Valim*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Director of R&D
>

-- 
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/c8ded620-67d7-4f6f-845b-152ba544a97a%40googlegroups.com.

Reply via email to