2012-03-13 09:55:45 -05:00
|
|
|
#[link(name="cci_impl_lib", vers="0.0")];
|
|
|
|
|
2012-03-01 12:36:22 -06:00
|
|
|
impl helpers for uint {
|
|
|
|
#[inline]
|
|
|
|
fn to(v: uint, f: fn(uint)) {
|
2012-03-22 10:39:41 -05:00
|
|
|
let mut i = self;
|
2012-03-01 12:36:22 -06:00
|
|
|
while i < v {
|
|
|
|
f(i);
|
|
|
|
i += 1u;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|