hi,
Why not some sort of functionality like LISP/Prolog i.e. working with lists.
("a",@x,"b",%y) - the list
head ("a",@x,"b",%y) # "a"
head(tile("a",@x,"b",%y)) #@x
head(head(tile("a",@x,"b",%y))) #$x[0]
head(tile(tile("a",@x,"b",%y))) #"b"
if you like it then "splice".... etc... can this be done in the moment ??
I think moto of the Perl6, should be "Steal with Style" :")
> On Tue, Aug 01, 2000 at 10:27:08PM +0300, Ariel Scolnicov wrote:
> > multimap operation list-of-lists # uurgh.
>
> This made me think of something else that came up in a discussion with
Larry
> after the conference.
>
> The discussion started off with the ability to do
>
> for ($a,$b) (@list) { ... }
>
> and go through the list in steps of two, or whatever the number of vars
were.
>
> But then went onto interators and something like
>
> @list = interleave(@a,@b,@c);
>
> which would interleave the lists given, and
>
> foreach ($a,$b,$c) (interleave(@a,@b,@c))
>
> which would iterate around all lists at the same time, but without
flattening
> the list. Maybe through some kind of hierarchy of iterators or something
>
> Graham.
>
> I really should get all these ideas into an RFC.