|
|
|
|
|
by baddox
2129 days ago
|
|
I think the reason it's weird is that we might intuitively think of the "enforce a lower bound" function as taking two named arguments (lowerBound and inputValue) and the order of those two arguments mattering. But of course, it turns out that the order of the arguments doesn't matter: applying a lowerBound of 5 to an inputValue of 100 turns out to be the exact same thing as applying a lowerBound of 100 to an inputValue of 5. We know that the order of arguments doesn't matter for the Math.max function, so I think that's where the moment of incredulity comes from. |
|