Re: How to get the index of an item in a list
Re: How to get the index of an item in a list
- Subject: Re: How to get the index of an item in a list
- From: Shane Stanley <email@hidden>
- Date: Mon, 25 Jun 2001 20:31:19 +1000
On 25/6/01 5:45 PM +1000, Greg Strange, email@hidden, wrote:
>
I'm sitting here. At 2:37 in the morning. Wanting to get the index of an
>
item in a list. You are there. Sleeping. Not wanting the index of an item
>
in a list. When you wake up, will you consider my plight?
>
Heck, I'll look at it before I go to bed...
>
>
I can see where I could loop through with a counter and get it but isn't
>
there a better way?
No -- looping is it. Now go to bed.
--
Shane Stanley, email@hidden