You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Anton Tagunov <at...@mail.cnt.ru> on 2003/09/08 12:21:51 UTC

Re: [lang] indexOf not first or last

Hello Stephen!

SC> From: "Phil Steitz" <ph...@steitz.com>
>> Gary Gregory wrote:
>> 1. Yes, the name sucks, but nothing nice jumps out at me. Of the
>> alternatives that you have listed, I like "indexOfOccurrence" the best.
>> Another one to consider might be "ordinalIndexOf".

SC> I think I prefer nthIndexOf, but indexOfOccurance may also be OK.

nIndexOf was so short to type and easy to remember, ugly, but
laboriolus duck..

Anton