20 lines
245 B
Haxe
20 lines
245 B
Haxe
package lib;
|
|
|
|
class MathI {
|
|
public static function max(a:Int, b:Int):Int {
|
|
if (a > b) {
|
|
return a;
|
|
} else {
|
|
return b;
|
|
}
|
|
}
|
|
|
|
public static function min(a:Int, b:Int):Int {
|
|
if (a < b) {
|
|
return a;
|
|
} else {
|
|
return b;
|
|
}
|
|
}
|
|
}
|