title: Fixed size array in swift
body: <p>i have a fixed size array as </p>
  
  <pre><code>var fieldNameArray = [String?](count: 4, repeatedValue: nil)
  </code></pre>
  
  <p>i am doing this to search if there is the element in array or not</p>
  
  <pre><code>  if let temp = find(fieldNameArray,"profile_picture"){//i get a compile error here
              //remove the data
             ....
  
  
  
  
          }else{
  
              println(" //append the value")
             .....
  
          }
  </code></pre>
  
  <p>But i get a compile time error as </p>
  
  <blockquote>
    <p>Cannot invoke 'find' with an argument list of type '([(String?)],
    String)'</p>
  </blockquote>
  
  <p>I think i should unwrap it? How can i do it</p>
  
  <p><strong>UPDATED</strong></p>
  
  <pre><code> SRWebClient.POST(registerURl)
  
              .data(registerImagesArray, fieldName: fieldNameArray, data: parametersToPost)
  
              .send({(response:AnyObject!, status:Int) -&gt; Void in//here compile time error
  
  
                  println("response object: \(response)")
  </code></pre>
  
  <p>Again after i changed my array to fixed size array i got this error</p>
  
  <blockquote>
    <p>Cannot invoke 'send' with an argument list of type '((AnyObject!, Int)
    -> Void, failure: (NSError!) -> Void)</p>
  </blockquote>