Function
Max
Max returns the parameter with the highest value.
(a, b int)
Source from the content-addressed store, hash-verified
| 11 | |
| 12 | // Max returns the parameter with the highest value. |
| 13 | func Max(a, b int) int { |
| 14 | if a > b { |
| 15 | return a |
| 16 | } |
| 17 | return b |
| 18 | } |