Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.
[email protected] (Buddha Buck) Fri, 18 Aug 2000 16:48:16 -0400
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Message-ID | <[email protected]> |
At 11:21 PM 8/18/00 +0300, 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 dunno... my @a :sparse; @a[1,5] = (1,1); @k = keys @a; print "@k"; # prints "1,2,3,4,5" or "1,5"? >[...] > >-- >Ariel Scolnicov |"GCAAGAATTGAACTGTAG" | >[email protected] >Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all >our Hz >72 Pinhas Rosen St. |Tel: +972-3-7658514 (Main >office)`--------------------- >Tel-Aviv 69512, ISRAEL |Fax: >+972-3-7658555 http://3w.compugen.co.il/~ariels