我想知道Elixir是否有可能保护特定的协议.
def some_fun(f) when implement?(f, Dict.Behaviour), do: ...
或者有什么可以断言f特别是HashDict吗?
谢谢 !
elixir
elixir ×1