Hey do you know what would be cool in perl 6
A special variable for when you do a for (@array) style loop
it would always have the index of the array
Discussed on #perl6: it's already quite easy in Perl 6 to loop with an
explicit index:
my @array = ;
for @array.kv -> $i, $val {
say "$i\t$val
Author: audreyt
Date: Mon Aug 28 07:34:29 2006
New Revision: 11527
Modified:
doc/trunk/design/syn/S02.pod
Log:
* S02: minor grammar and syntax nit from p6l feedbacks.
Modified: doc/trunk/design/syn/S02.pod
==
--- doc/
On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
+Elsewhere it is equivalent to a parenthesisized list of strings:
+C<< ('foo','bar') >>. Since parentheses are generally reserved just for
+precedence grouping, they merely autointepolate in list context. Therefore
+
+@a = 1, < 2 3 >,
Richard Hainsworth skribis 2006-08-28 10:33 (+0400):
> ---
> | Class
> A|
> |
> --
[EMAIL PROTECTED] writes:
> New Revision: 11504
>doc/trunk/design/syn/S02.pod
>
> +C<< ('foo','bar') >>. Since parentheses are generally reserved just for
> +precedence grouping, they merely autointepolate in list context. Therefore
Typo: "autointepolate".
Smylers
Author: audreyt
Date: Mon Aug 28 00:11:57 2006
New Revision: 11509
Modified:
doc/trunk/design/syn/S02.pod
Log:
* grammar nit, and clarify that it is the assign-to-scalar that Arrayify a list.
Modified: doc/trunk/design/syn/S02.pod
==