is there any way to define overload functions with different arity, e.g in C# I can just do:
foo(bar)
or
foo(bar, baz)
In Elixir, the only way to do that would be to put them in separate modules, which will get messy pretty quickly. Is there any way around it?
Edit: I had made a wrong assumption. The examples of overloaded functions I saw happened to have the same arity, so I (wrongly) assumed that this was a requirement. Functions are uniquely identified by their name and arity, so you can in fact overload functions with different arity.