I am trying to use Enum function frequencies but it isn't work.
Base on documentation Enum - Elixir v1.10.2
When I try to use that example:
Enum.frequencies(~w{ant buffalo ant ant buffalo dingo})
# OR
Enum.frequencies(["ant", "buffalo", "ant", "ant", "buffalo", "dingo"])
I always revive error:
** (UndefinedFunctionError) function Enum.frequencies/1 is undefined or private
I have already tried to execute that code example at iex shell, .ex file body and online Repl.
My local elixir version Elixir 1.9.4 (compiled with Erlang/OTP 22)
It seems to me that I miss some essential point at documentation, so I am looking for some pro tip ;)