Jarkko Hietaniemi wrote: > > $item:n would be the position $item had in the last container it was in > > $item:i, you surely meant? $item:n would be the size of the list... The size of the list would be something like $#{$item:contained_in} the size of the list is not a property of the item, some indirection resolution would be required. I think :n because that allows lazy lists to be functions of integers, which were always I<f(n)> in algebra class. You could access n directly within a HOF lazy list with ${ME:n}. Shifts would increment such a list's $WE[0]:n value, until it is reset. (addendum to the $ME idea --- containers are refered to inside themselves as [@%]WE -- thoughts?)
- RFC 120 (v1) Implicit counter in C<for> statemen... Perl6 RFC Librarian
- Re: RFC 120 (v1) Implicit counter in C<for>... Tim Jenness
- Re: RFC 120 (v1) Implicit counter in C<for... Graham Barr
- Re: RFC 120 (v1) Implicit counter in C<for>... John McNamara
- McNamara's C<$#> as a property of any a... David L. Nicol
- Re: McNamara's C<$#> as a property ... Mike Pastore
- Re: McNamara's C<$#> as a prope... David L. Nicol
- Re: McNamara's C<$#> as a ... Jarkko Hietaniemi
- Re: McNamara's C<$#> a... David L. Nicol
- Re: McNamara's C<$#> as a property ... Hildo Biersma
- Re: McNamara's C<$#> as a property ... Peter Haworth
- Re: McNamara's C<$#> as a property ... David L. Nicol
- Re: RFC 120 (v1) Implicit counter in C<for... Tim Jenness