Stride in Swift
Moving through, without a boring For loop

I’ve spent some time solving Leetcode problems. More technically I’ve had a few issues with 54. Spiral Matrix and 59. Spiral Matrix II and now I find that solutions would have been much easier had I used Stride.
Prerequisites:
- None, a basic knowledge of programming in Swift would be helpful
Terminology
Sequentially: A logical order or sequence
Stride: A function to stride over values of any type
The problem
Imagine you want to move through an array.
The traditional way is to use a for loop. An alternative is to use stride, and that produces the same result.


