initial import
This commit is contained in:
17
core/mathx/int.go
Normal file
17
core/mathx/int.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package mathx
|
||||
|
||||
func MaxInt(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
} else {
|
||||
return b
|
||||
}
|
||||
}
|
||||
|
||||
func MinInt(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
} else {
|
||||
return b
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user