From: John W Higgins Date: 2013-03-26T04:13:49+09:00 Subject: Re: Confusion with Array#map --047d7b6226a4ab3da604d8c49a2c Content-Type: text/plain; charset=ISO-8859-1 [start, size] Think about the size -1 - What exactly would an array with -1 members look like? What would an array with 0 members look like? John On Mon, Mar 25, 2013 at 12:03 PM, Love U Ruby wrote: > The below code giving empty array. > > [2,3][-1,0] > #=> [] > > But why does the code below giving nil value? > > [2,3][0,-1] > #=> nil > > -- > Posted via http://www.ruby-forum.com/. > > --047d7b6226a4ab3da604d8c49a2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable [start, size]

Think about the size -1 -

What exactly would a= n array with -1 members look like?

What would an array with 0 member= s look like?

John

On Mon, Mar 25, = 2013 at 12:03 PM, Love U Ruby <lists@ruby-forum.com> wrot= e:
The below code giving empty array.

[2,3][-1,0]
#=3D> []

But why does the code below giving nil value?

[2,3][0,-1]
#=3D> nil

--047d7b6226a4ab3da604d8c49a2c--