2010-06-23 23:03:09 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
// -*- rust -*-
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { for each i: int in first_ten() { log "main"; } }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
|
|
|
iter first_ten() -> int {
|
2011-07-27 07:19:39 -05:00
|
|
|
let i: int = 90;
|
|
|
|
while i < 100 { log "first_ten"; log i; put i; i = i + 1; }
|
2011-06-15 13:19:50 -05:00
|
|
|
}
|