title: Using the capture operator in an umbrella app - elixir
body: <p>I have an umbrella app,<br>
  which in one app(ex: App1) i am sending a function as an argument to a different function located in another app(ex: App2).<br>
  I am sending the function like this:  </p>
  
  <pre><code>defmodule App1.Bar do
    def bar_bar(fun) do
      fun.()
    end
  end
  
  defmodule App2.Foo do
    def foo_foo do
      App1.Bar.bar_bar(&amp;Io.puts(Project.get.project[:app]))
    end
  end
  </code></pre>
  
  <p>My question is:<br>
  does that function actually executed in <code>App1</code> or in <code>App2</code>(where it's being defined)?  </p>