[SP-pm] Soma de duas listas

Alexei Znamensky russoz at gmail.com
Thu Jul 22 09:15:53 PDT 2010


unshift @c, pop(@a)+pop(@b) while em a

On Thu, Jul 22, 2010 at 13:11, Pinguim Azul <bluepenguin em gmail.com> wrote:

> On Thu, Jul 22, 2010 at 1:06 PM, Eden Cardim <edencardim em gmail.com> wrote:
> > push em c,pop(@a)+pop em b while em a'
>
> Desse jeito a lista fica invertida :(
>
> Por enquanto o menor ainda é:
>
> @c=map{$a[$_]+$b[$_]}(0..$#a);
>
> --
> Ricardo Bittencourt
> http://www.ricbit.com
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>



-- 
Alexei Znamensky [russoz_gmail_com] [russoz.wordpress.com] [
www.flickr.com/photos/alexeiz]
«Only love / Can bring the rain / That makes you yearn to the sky»
-------------- Pr�xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20100722/6a70dafe/attachment.html>


More information about the SaoPaulo-pm mailing list