Hi Osawa,
Please send a pull request for Enum.count_by:
iex> Enum.count_by(~w{aa aA bb cc}, fn x -> String.downcase(x) end)
%{"aa" => 2, "bb" => 1, "cc" => 1}
It is meant to mirror group_by.
If someone has an objection against count_by, please let us know.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/ade9c572-86e8-4477-9101-f82008817b53%40googlegroups.com.