title: Getting data out of a closure in swift
body: <p>I have made a query in parse and fetched an array of GeoPoint coordinates. This was done inside a closure. I can only access the array values inside that closure. I need to be able to use those value so they can be used as annotations on a map but I can't get to them. Can somebody tell me how to get the array values out of the closure.</p>
  
  <p>code:</p>
  
  <pre><code>var user = PFUser.currentUser()
  user["location"] = geopoint
  
  var query = PFUser.query()
  query.whereKey("location", nearGeoPoint:geopoint)
  query.limit = 10
  query.findObjectsInBackgroundWithBlock({ (objects: [AnyObject]!, error: NSError!) -&gt; Void in
  
      for object in objects {
  
          var user:PFUser = object as PFUser
          var otherUsersCoord = [PFGeoPoint]()
          otherUsersCoord.append(user["location"] as PFGeoPoint)
  
          println("The other users coords are: \(otherUsersCoord)")
      }
  
  })}
  </code></pre>