Converting obj-c code to swift 2 block issue
<p>I have the following code, in objective C.</p>

<pre><code>[pixelData processPixelsWithBlock:^(JGPixel *pixel, int x, int y) {

}];
</code></pre>

<p>now, to me, the swift equivalent would be </p>

<pre><code>pixelData.processPixelsWithBlock({(pixel: JGPixel, x: Int, y: Int) -&gt; Void in

})
</code></pre>

<p>however, that is throwing an error of </p>

<p>Cannot convert value of type '(JGPixel, Int, Int) -> Void' to expected argument type '((UnsafeMutablePointer, Int32, Int32) -> Void)!'</p>

<p>Can anyone help explain where i'm going wrong, and how I can learn more about this error. Thanks!</p>