V
V
Volodymyr Lavryk2016-10-25 17:32:39
Swift
Volodymyr Lavryk, 2016-10-25 17:32:39

For-in with a negative gain?

How to set c-like loop
for var j = count - 1; j >= 0; j -= 1
in swift for-in loop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
ManWithBear, 2016-10-25
@Vo0ne

for i in (0..<count).reversed() {
    print(i)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question