We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d195b75 commit 0bc0419Copy full SHA for 0bc0419
lib/elixir/lib/enum.ex
@@ -997,7 +997,8 @@ defmodule Enum do
997
998
# TODO: Remove on 2.0
999
def group_by(enumerable, dict, fun) when is_function(fun, 1) do
1000
- IO.warn "Enum.group_by/3 with a map/dictionary as second element is deprecated, please use a map instead"
+ IO.warn "Enum.group_by/3 with a map/dictionary as second element is deprecated. " <>
1001
+ "A map is used by default and it is no longer required to pass one to this function"
1002
reduce(reverse(enumerable), dict, fn(entry, categories) ->
1003
Dict.update(categories, fun.(entry), [entry], &[entry | &1])
1004
end)
0 commit comments