>
> $ irb
> irb(main):001:0> (1..11).map {|v| v*v}
> [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121]

thanks. very short :-)
that's why ruby is my favourite language!

markus


>
> Short enough for my taste... (but maybe there are some benefits to the
> Python way? I don't know any Python.)
>
> Regards,
>
> /Robert

-- 
Markus Jais
http://www.mjais.de
info / mjais.de
The road goes ever on and on - Bilbo Baggins