Two return a max result. I'll leave you to guess which one is correct.
The ternary variant suggested elsewhere suffers somewhat from the same exposure to simple coding errors, especially if the value calculations are not trivial or the size of the set of values being tested is increased.
In reply to Re^3: Clever vs. Readable
by GrandFather
in thread Clever vs. Readable
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |