J
Jeppe Jakobsen
------=_Part_7884_19909102.1139780987476
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, I want to square every element in my array using a block:
a =3D (1..1000).to_a
a.each {|x| x**2}
But this does not seem to work, it just outputs my array completely
unchanged
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, I want to square every element in my array using a block:
a =3D (1..1000).to_a
a.each {|x| x**2}
But this does not seem to work, it just outputs my array completely
unchanged