Add uint::min
This commit is contained in:
parent
ea69f48eac
commit
fa78fee4de
@ -24,6 +24,8 @@
|
||||
|
||||
fn max(uint x, uint y) -> uint { if (x > y) { ret x; } ret y; }
|
||||
|
||||
fn min(uint x, uint y) -> uint { if (x > y) { ret y; } ret x; }
|
||||
|
||||
iter range(uint lo, uint hi) -> uint {
|
||||
auto lo_ = lo;
|
||||
while (lo_ < hi) { put lo_; lo_ += 1u; }
|
||||
|
Loading…
Reference in New Issue
Block a user