mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
f407b94d09
This resolves issue #45.
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
|
|
}
|