Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • @Oriol I disagree with this closure. This one specifically asks about returning to an array. Granted, not all the answers address that properly. The other question wants to access it from a loop. I think this is shown by the fact that my answer applies to this question but not the target. Commented Feb 9, 2015 at 17:03
  • @Scimonster The most upvoted answer in the other question answers this perfectly. It even includes a variation of your answer to this question. You can vote to reopen if you disagree, though. Commented Feb 9, 2015 at 17:07