Created
October 18, 2013 14:00
-
-
Save jwieringa/7041960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def max(x, y) | |
x > y ? x : y | |
end | |
def max_or_zero(x, y) | |
max(0, max(x, y)) | |
end |
cupakromer
commented
Oct 18, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment