4 ms·
Isn't that more an example of `multiple dispatch` rather than `pattern matching`?
by daxfohl 10y ago
Isn't that more an example of `multiple dispatch` rather than `pattern matching`?
- sergiotapia 10y agoIn Elixir land it's been taught to me as pattern matching. I have never heard of `multiple dispatch`.
- muhmi 10y agoBoth :) You can pattern match in function head (definition) http://elixir-lang.org/getting-started/pattern-matching.html http://elixir-lang.org/getting-started/pattern-matching.html