From: Roelof Wobben Date: 2012-09-25T17:41:39+09:00 Subject: inject problem --_4a00a345-b480-4095-8a8b-467872076eef_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C=20 I have a array like this [ 1.2.1.1] Now I want a hash which contains the numbers and the count. So I thought this would work : count.inject { |1=2C array.count(1)| } But I get a lot of syntax errors. Can anyone give me a hint where I am going wrong ? Roelof = --_4a00a345-b480-4095-8a8b-467872076eef_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello=2C

I have a array like this [ 1.2.1.1]
Now I want a hash w= hich contains the numbers and the count.
So I thought this would work : = count.inject { |1=2C array.count(1)| }

But I get a lot of syntax err= ors.

Can anyone give me a hint where I am going wrong ?

Roelo= f



= --_4a00a345-b480-4095-8a8b-467872076eef_--