Closed michalmuskala closed 8 years ago
As documented in http://elixir-lang.org/docs/stable/elixir/Enumerable.html#member?/2 unimplemented functions should return {:error, __MODULE__}, and then a default implementation would be used.
{:error, __MODULE__}
Also there is no need to add :for key in defimpl if it's inside the module that it is implementing.
:for
defimpl
As documented in http://elixir-lang.org/docs/stable/elixir/Enumerable.html#member?/2 unimplemented functions should return
{:error, __MODULE__}
, and then a default implementation would be used.Also there is no need to add
:for
key indefimpl
if it's inside the module that it is implementing.