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 {
        ok = true;
        break;
    }

    if i == 5 {
        panic("This should not happen");
    }
}

if !ok {
    panic("This should not happen");
}

let it = 0;
ok = false;

while it < 100 {
    if it == 99 {
        ok = true;
        break;
    }

    if it == 100 {
        panic("This should not happen");
    }

    it.inc();
}

if !ok {
    panic("This should not happen");
}