1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
let array = arr<Int>();
array.push(0);
array.push(1);
array.push(2);
array.push(3);
array.push(4);
array.push(5);
let ok = false;
for i in array {
if i == 4 {
continue;
}
if i == 5 {
ok = true;
}
if i == 4 {
panic("This should not happen");
}
}
if !ok {
panic("This should not happen");
}
let it = 0;
ok = false;
while it <= 100 {
if it == 99 {
it.inc();
continue;
}
if it == 100 {
ok = true;
}
if it == 99 {
panic("This should not happen");
}
it.inc();
}
if !ok {
panic("This should not happen");
}