title: Is there a way to declare an inline function in Swift?
body: <p>I'm very new to the Swift language.</p>
  <p>I wanted to declare an <em>inline</em> function just like in C++
  so my <code>func</code> declaration looks like this:</p>
  <pre><code>func MyFunction(param: Int) -&gt; Int {
      ...
  }
  </code></pre>
  <p>and I want to do something like this:</p>
  <pre><code>inline func MyFunction(param: Int) -&gt; Int {
      ...
  }
  </code></pre>
  <p>I tried to search on the web but I didn't find anything relevant maybe there is no <code>inline</code> keyword but maybe there is another way to inline the function in Swift.</p>