Is there a way to work with reverse ranges in Swift?
For example:
for i in 5...1 { // do something }
is an infinite loop.
This could be another way of doing this.
(1...5).reversed().forEach { print($0) }