10 lines
172 B
Rust
10 lines
172 B
Rust
|
impl helpers for uint {
|
||
|
#[inline]
|
||
|
fn to(v: uint, f: fn(uint)) {
|
||
|
let i = self;
|
||
|
while i < v {
|
||
|
f(i);
|
||
|
i += 1u;
|
||
|
}
|
||
|
}
|
||
|
}
|