Polymorphism in Elixir – Mustafa Turan


By Erlang Central | Published: March 15, 2017



Polymorphism is the provision of a single interface to entities of different types. Basically, it allows different data types respond to same function. So the same function shapes for different data types to accomplish the same behaviour. Elixir language has ‘protocols’ to implement polymorphism with a clean way.

https://medium.com/@mustafaturan/polymorphism-in-elixir-cd0c765b6929#.2qkq5vstm



Follow Erlang Central:


Have an Erlang Question?

Reach out to the Erlang community