Int within ranges

2011-06-13 Thread nrgyzer
Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] = 1000; myArray[20] = 2000; myArray[30] = 3000; myArray[40] = 4000; myArray[50] = 5000; int[] newArray = myArray[= 20 .. = 40]; // not able to do this

Re: Int within ranges

2011-06-13 Thread Steven Schveighoffer
On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] = 1000; myArray[20] = 2000; myArray[30] = 3000; myArray[40] = 4000; myArray[50] = 5000;

Re: Int within ranges

2011-06-13 Thread bearophile
Steven Schveighoffer: But the dcollections.TreeMap API is more polished. I think most people will want to use just Phobos, to avoid a dependency, even if the Phobos one is less polished... Bye, bearophile

Re: Int within ranges

2011-06-13 Thread Steven Schveighoffer
On Mon, 13 Jun 2011 13:25:39 -0400, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: But the dcollections.TreeMap API is more polished. I think most people will want to use just Phobos, to avoid a dependency, even if the Phobos one is less polished... Sure, but it's

Re: Int within ranges

2011-06-13 Thread Jonathan M Davis
On 2011-06-13 09:15, nrgyzer wrote: Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] = 1000; myArray[20] = 2000; myArray[30] = 3000; myArray[40] = 4000; myArray[50] = 5000; int[] newArray = myArray[=

Re: Int within ranges

2011-06-13 Thread nrgyzer
On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] = 1000; myArray[20] = 2000; myArray[30] = 3000; myArray[40] = 4000;

Re: Int within ranges

2011-06-13 Thread Steven Schveighoffer
On Mon, 13 Jun 2011 14:52:24 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] = 1000;

Re: Int within ranges

2011-06-13 Thread nrgyzer
On Mon, 13 Jun 2011 14:52:24 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there, is there any possibility to get a sliced array from another array between two ranges like: int[uint] myArray; myArray[10] =

Re: Int within ranges

2011-06-13 Thread Steven Schveighoffer
On Mon, 13 Jun 2011 15:44:01 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 14:52:24 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there, is there any possibility to get a sliced array from another array

Re: Int within ranges

2011-06-13 Thread nrgyzer
== Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel On Mon, 13 Jun 2011 15:44:01 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 14:52:24 -0400, nrgyzer nrgy...@gmail.com wrote: On Mon, 13 Jun 2011 12:15:40 -0400, nrgyzer nrgy...@gmail.com wrote: Hi there,