Wow. The only arrogance I see here is yours.

Your "not-a-nit-pick" nit-pick: "e.g. -5 is a whole number;" is -- in many non-English natural language settings, and many strictly mathematical settings -- entirely WRONG! And all the dressing you wrapped around it, presumptive, unnecessary fluff; and your solution: stupidly inefficient and pointlessly complex.

Laurent's oh-so-gentle reminder that your language, viewpoint and understanding, may differ from that of the OPs; was as polite as it is possible to be, whilst pointing out to a stranger, that they just might be being myopic, to the point of coming close to xenophobic.

And that was just your arrogance in your original reply to the OP; your reply to Laurent is in another class entirely. The latter is quite simply the worst case of attempted misdirection-by-attacking-the-author-of-the-message-because-you-have-no-legitimate-answer-to-and-are-embarrassed-by-the-message as I've seen here in a long time.

As for your exposition of what you "find acceptable", it is the very definition of that which you decry as unacceptable. It wouldn't be out of place in a tweet by the MOTUS.

I'm hoping your latter reply was an uncharacteristic aberration and you'll re-read Laurent's post when in a less defensive mood and correct it accordingly.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

In reply to Re^4: How to get the index of smallest whole number in an array? by BrowserUk
in thread How to get the index of smallest whole number in an array? by sohamsg90

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.