Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 93928 invoked from network); 8 Sep 2003 11:05:09 -0000 Received: from unknown (HELO post.cnt.ru) (212.15.122.243) by daedalus.apache.org with SMTP; 8 Sep 2003 11:05:09 -0000 Received: from trist.bssys.com (ppp3-27.dial-up.cnt.ru [212.15.120.27]) by post.cnt.ru (8.11.7/8.11.1) with ESMTP id h88ATW506994 for ; Mon, 8 Sep 2003 14:29:34 +0400 Date: Mon, 8 Sep 2003 14:21:51 +0400 From: Anton Tagunov X-Mailer: The Bat! (v1.60h) X-Priority: 3 (Normal) Message-ID: <11236841825.20030908142151@mail.cnt.ru> To: "Jakarta Commons Developers List" Subject: Re: [lang] indexOf not first or last In-Reply-To: <007601c36c36$118d1bc0$74778051@oemcomputer> References: <245A7290F0E0D311BF6E009027E7908B072047EB@atlanta.seagullsw.com> <3F4AF9E8.1030605@steitz.com> <007601c36c36$118d1bc0$74778051@oemcomputer> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Stephen! SC> From: "Phil Steitz" >> 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