... what's with the [ 0 ] at the end?
If you liked that, take another look at kcott's ( ... )[0][0] approach. That said, it's still not an O(n) solution and therefore not, in general, and all things being equal, to be preferred IMHO.
Give a man a fish: <%-{-{-{-<
In reply to Re^4: How to get the index of smallest whole number in an array?
by AnomalousMonk
in thread How to get the index of smallest whole number in an array?
by sohamsg90
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |