8 lines
159 B
Zig
8 lines
159 B
Zig
|
pub fn max(comptime T: type, a: T, b: T) T {
|
||
|
return if (a > b) a else b;
|
||
|
}
|
||
|
|
||
|
pub fn min(comptime T: type, a: T, b: T) T {
|
||
|
return if (a < b) a else b;
|
||
|
}
|