I am working on a protocol, and I need to have access to the module
that implements the protocol. For example, `Enumerable.List`.

It is actually mentioned in the documentation, but I would like to know
whether this is an implementation detail or a non-documented standard
that I can rely on. In case it is an implementation detail, a function
like Protocol.impl(protocol_module, implementation_module) would be
desired.

iex> Protocol.impl(Enumerable, List)
Enumerable.List

Thank you.

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/5fffbcb7.1c69fb81.f59a4.3b1bSMTPIN_ADDED_MISSING%40gmr-mx.google.com.

Reply via email to