Mike Pastore wrote:
>
> On 18 Aug 2000, Ariel Scolnicov wrote:
>
> > Actually, this suggests that C<values @array> should return
> > C<(@array)> (a copy of the values), and C<keys @array> the list
> > C<(0..$#array)>. But those aren't very useful.
>
> I like the proposed syntax! I also think that C<keys @array> would be
> useful, I often use arrays as integer-based lookups (like for database
With sparse arrays, keys (@ayy) would give you the indices of the ones that
are defined
What is this discussion doing in -flow, anyway?
And the syntax for directly accessing an array element's last known
array index is ${element:n} -- it might give you the key that was
used to find it in a hash too, but not so sure.
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
Does despair.com sell a discordian calendar?
- Re: RFC 120 (v2) Implicit counter in for statements,... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit counter in for statem... Glenn Linderman
- Re: RFC 120 (v2) Implicit counter in for statem... David L. Nicol
- Re: RFC 120 (v2) Implicit counter in for st... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit counter in fo... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit counter i... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit coun... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit ... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit coun... Ariel Scolnicov
- Re: RFC 120 (v2) Implicit ... Mike Pastore
- Re: RFC 120 (v2) Implicit ... David L. Nicol
- Re: RFC 120 (v2) Implicit ... Johan Vromans
- Re: RFC 120 (v2) Implicit ... Buddha Buck
- Re: RFC 120 (v2) Implicit counter in for statem... Ken Fox
- Re: RFC 120 (v2) Implicit counter in for st... Graham Barr
- Re: RFC 120 (v2) Implicit counter in fo... Peter Scott
- Re: RFC 120 (v2) Implicit counter in for statements,... Nathan Torkington
- Re: RFC 120 (v2) Implicit counter in for statements,... Steve Simmons
- Re: RFC 120 (v2) Implicit counter in for statem... John McNamara
- Re: RFC 120 (v2) Implicit counter in for st... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit counter in fo... John McNamara
