--f46d042f925e83c61004d2aa0bdf
Content-Type: text/plain; charset=UTF-8

Hello,

  I am test this has a problem,

ruby -v
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.1]


vs  1..9).to_a
[1, 2, 3, 4, 5, 6, 7, 8, 9]

v1  s.select { |n| if n..n then 1 end }
[3, 4, 5, 6]

v2  s.select { |n| if n..n6 then 1 end }
[2, 3, 4, 5, 6, 7, 8, 9]

v3  s.select { |n| if n..n then 1 end }
[1, 2, 3, 4, 5, 6]

v1 and v3 use some condition , return value is different.

--f46d042f925e83c61004d2aa0bdf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div> I am test this has a problem,</div><div><br></div><div><div>ruby -v</div><div>ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.1]</div><div><br></div><div><br></div><div>vs = (1..9).to_a</div>

<div>=&gt; [1, 2, 3, 4, 5, 6, 7, 8, 9]</div><div><br></div><div>v1 = vs.select { |n| if n==3..n==6 then 1 end }</div><div>=&gt; [3, 4, 5, 6]</div><div><br></div><div>v2 = vs.select { |n| if n==2..n==16hen 1 end }</div>
<div>
=&gt; [2, 3, 4, 5, 6, 7, 8, 9]</div><div><br></div><div>v3 = vs.select { |n| if n==3..n==6 then 1 end }</div><div>=&gt; [1, 2, 3, 4, 5, 6]</div><div><br></div><div>v1 and v3 use some condition , return value is different.</div>

<div><br></div><div><br></div></div>

--f46d042f925e83c61004d2aa0bdf--