mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
16 lines
143 B
Go
16 lines
143 B
Go
|
package edit
|
||
|
|
||
|
func min(a, b int) int {
|
||
|
if a <= b {
|
||
|
return a
|
||
|
}
|
||
|
return b
|
||
|
}
|
||
|
|
||
|
func max(a, b int) int {
|
||
|
if a >= b {
|
||
|
return a
|
||
|
}
|
||
|
return b
|
||
|
}
|