At 04:36 PM 8/11/00 -0400, John Porter wrote:
>Damian Conway wrote:
> >    > Note that cleave is its own antonym!  :-)
> >
> > I can see it now:
> >
> >       @interspersed = cleave(@list1, @list2, @list3)
> >       @separated    = cleave(3,@interspersed);
> >
> > Now *that's* DWIM! ;-)
>
>In fact, perl really only needs one OP:
>
>         @results = dwim $stuff, @args, %hey;
>
>(Well, I guess that's two: the assignment is an op also.)

Nah, toss the assignment op and replace it with dwim too. Perl will just do 
all possible operations simultaneously (in constant time, of course) and 
the right result will collapse out the other end.

Yeah, that's the ticket... :)


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to