How To Use 'for where' In Swift

Posted by David Okun on November 26, 2017

When you can’t afford to loop through every single element of a collection, it helps to set conditions.

Swift has a neat way to avoid looping through every single element by setting a condition at the same time as you set up your loop. I recorded a screencast about it for you, and you can watch it right here. Enjoy!