CopyPastor

Detecting plagiarism made easy.

Score: 0.7644336819648743; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-06-27
by midhun p

Original Post

Original - Posted on 2015-10-26
by Irfan



            
Present in both answers; Present only in the new answer; Present only in the old answer;

for index in stride(from: 5, to: 1, by: -1) { print(index) }
prints 5, 4, 3, 2
for index in stride(from: 5, through: 1, by: -1) { print(index) }
prints 5, 4, 3, 2, 1
**Swift 4** onwards

for i in stride(from: 5, to: 0, by: -1) { print(i) } //prints 5, 4, 3, 2, 1
for i in stride(from: 5, through: 0, by: -1) { print(i) } //prints 5, 4, 3, 2, 1, 0

        
Present in both answers; Present only in the new answer; Present only in the old answer;