Returning values in Elixir? : <p>I've recently decided to learn Elixir. Coming from a C++/Java/JavaScript background I've been having a lot of trouble grasping the basics. This might sound stupid but how would return statements work in Elixir? I've looked around and it seems as though it's just the last line of a function i.e.</p>

<pre><code>def Hello do 
  "Hello World!"
end
</code></pre>

<p>Would this function return "Hello World!", is there another way to do a return? Also, how would you return early? in JavaScript we could write something like this to find if an array has a certain value in it:</p>

<pre><code>function foo(a){
   for(var i = 0;i&lt;a.length;i++){
      if(a[i] == "22"){
         return true;
      }
   }
   return false;
}
</code></pre>

<p>How would that work in Elixir?</p>
