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.

3
  • 4
    See Is micro-optimisation important when coding? Commented Mar 27, 2019 at 1:48
  • 3
    are you sure it iterates twice? I would expect it to iterate once, applying each function in turn as your expanded method does Commented Mar 27, 2019 at 9:48
  • 1
    @Ewan not that familiar with swift but it appears it does unless you explictly ask for laziness stackoverflow.com/questions/51917054/… Commented Mar 27, 2019 at 12:04