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 5c91a73 commit 9252a16Copy full SHA for 9252a16
lib/elixir/lib/enum.ex
@@ -999,7 +999,8 @@ defmodule Enum do
999
1000
# TODO: Remove on 2.0
1001
def group_by(enumerable, dict, fun) when is_function(fun, 1) do
1002
- 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. " <>
1003
+ "A map is used by default and it is no longer required to pass one to this function"
1004
reduce(reverse(enumerable), dict, fn(entry, categories) ->
1005
Dict.update(categories, fun.(entry), [entry], &[entry | &1])
1006
end)
0 commit comments