9d0a41c0d2
Forgot to commit this new file in a previous commit
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;
|
|
}
|