iOS Swift 2 - Check if function already in array
<p>This is my array for function</p>

<pre><code>var funcArray = Array&lt;() -&gt; Void&gt;()
</code></pre>

<p>To the array I append closure functions which comes as a parameter</p>

<pre><code>func someFunc(completition: (() -&gt; Void)?){
// ...
     if let callback = completition {
         funcArray.append(callback)
     }
// ...
}
</code></pre>

<p>How can I check if the array already contains the function before appending it to the array ?</p>