indexOf using with arrays in Swift
<p>I have an array:</p>

<pre><code>var swiftBlogs:[Message] = [Message]()
</code></pre>

<p>And I want to find index number of some object. I tried following code:</p>

<pre><code>let mm=Message()
swiftBlogs.indexOf(mm)
</code></pre>

<p>But I am getting compiler error:</p>

<pre><code>Cannot convert value of type 'Message' to expected argument type '@noescape (Message) throws -&gt; Bool'
</code></pre>

<p>How can I resolve this?</p>