I came across this piece of code which does Enumerable protocol 
implementation for Lists 
- 
https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/enum.ex#L3761-L3763

Consequently, some lines below the same implementation of Maps have this 
- 
https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/enum.ex#L3783-L3798

Curious why Lists should return error while Maps return values being part 
of the same protocol implementation.

-- 
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/71a24ae9-d1fd-42c8-a3dc-913b09173b1dn%40googlegroups.com.

Reply via email to