title: is it possible to create a generic closure in Swift?
body: <pre><code>func myfunc&lt;T&gt;(i:T) -&gt; T {
      return i
  }
  </code></pre>
  
  <p>is it possible to make this generic function a closure?</p>
  
  <pre><code>let myfunc = { &lt;T&gt;(i:T) -&gt; T in
      return i
  }
  </code></pre>
  
  <p>this doesn't work...</p>