gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/cmds/core/elvish/edit/minmax.go (about)

     1  package edit
     2  
     3  func min(a, b int) int {
     4  	if a <= b {
     5  		return a
     6  	}
     7  	return b
     8  }
     9  
    10  func max(a, b int) int {
    11  	if a >= b {
    12  		return a
    13  	}
    14  	return b
    15  }