# Function calling another function

**URL:** <https://forum.elixirforum.com/t/function-calling-another-function/39182>\
**Category:** Questions\
**Tags:** function\
**Created:** [April 23, 2021, 4:38pm UTC](https://forum.elixirforum.com/t/function-calling-another-function/39182 "2021-04-23T16:38:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![patrickdm](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/patrickdm/32/7579_2.png) [@patrickdm](https://forum.elixirforum.com/u/patrickdm)\
**Post date:** [April 23, 2021, 7:25pm UTC](https://forum.elixirforum.com/t/function-calling-another-function/39182/7 "2021-04-23T19:25:16Z")

</div>

IMHO, with no risk if being unfaithful with the functions names, you can skip completely the third optional argument:

> [@grangerelixx](#):
>
> ```elixir
> def function_1(arg1, arg2, arg3) do 
> does something
> end
> 
> def function_with_arg3_equals_5(arg1, arg2) do
> function_1(arg1, arg2, 5)
> end
> 
> def function_with_arg3_equals_10(arg1, arg2) do
> function_1(arg1, arg2, 10)
> end
> 
> ```

---

_[View the full topic](https://forum.elixirforum.com/t/function-calling-another-function/39182)._
