[Rio-pm] [Fun - passa tempo] Cifra de Vigenère

Nuba Princigalli nuba em fastmail.fm
Sábado Novembro 9 22:16:56 PST 2013







On Sun, Nov 10, 2013, at 01:13 AM, Tiago Peczenyj wrote:

3- use map :)

ao inves de

        my @b = split (//, $c);
        for (my $i = 0; $i < @b; $i++){
                $b[$i] = ord $b[$i];
        }

podes fazer

return map { ord } split //, $c;



quer enxugar mais uma gota? faz



map ord, split //, $c;



:)



--
Nuba R. Princigalli nuba em pauleira.com http://pauleira.com @nprincigalli
Discipline is not an end in itself, just a means to an end. - King
Crimson
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/rio-pm/attachments/20131110/e35d8d22/attachment.html>


Mais detalhes sobre a lista de discussão Rio-pm