Calling a function inside other function

That sounds like OOP. Elixir doesn’t have objects. Functions act on their parameters (besides side-effects).