Re: Assigning map result, and in-place map

2010-09-03 Thread Bert van Leeuwen
Pelle Wrote: > On 09/03/2010 12:32 PM, Bert van Leeuwen wrote: > > Pelle Wrote: > > > >> On 09/03/2010 11:42 AM, Bert van Leeuwen wrote: > >> > >>> 2) Related to above, I want to do something like map, but not return a > >>> new array, I want to modify elements in-place in the array. How do I do

Re: Assigning map result, and in-place map

2010-09-03 Thread Pelle
On 09/03/2010 12:32 PM, Bert van Leeuwen wrote: Pelle Wrote: On 09/03/2010 11:42 AM, Bert van Leeuwen wrote: 2) Related to above, I want to do something like map, but not return a new array, I want to modify elements in-place in the array. How do I do that? (without explicitly iterating wit

Re: Assigning map result, and in-place map

2010-09-03 Thread Denis Koroskin
On Fri, 03 Sep 2010 14:32:47 +0400, Bert van Leeuwen wrote: Pelle Wrote: On 09/03/2010 11:42 AM, Bert van Leeuwen wrote: > 2) Related to above, I want to do something like map, but not return a new array, I want to modify elements in-place in the array. How do I do that? (without explici

Re: Assigning map result, and in-place map

2010-09-03 Thread Bert van Leeuwen
Pelle Wrote: > On 09/03/2010 11:42 AM, Bert van Leeuwen wrote: > > > 2) Related to above, I want to do something like map, but not return a new > > array, I want to modify elements in-place in the array. How do I do that? > > (without explicitly iterating with foreach etc.) > > I don't know if

Re: Assigning map result, and in-place map

2010-09-03 Thread Bert van Leeuwen
Thanks! Nick Sabalausky Wrote: > "Bert van Leeuwen" wrote in message > news:i5qftb$2a2...@digitalmars.com... > > I'm a D n00b, so excuse my question if it is silly. I've cursorily > > "followed" D for a few years, but only now bought "The D Programming > > Language" (great book, very nicely w

Re: Assigning map result, and in-place map

2010-09-03 Thread Pelle
On 09/03/2010 11:42 AM, Bert van Leeuwen wrote: 2) Related to above, I want to do something like map, but not return a new array, I want to modify elements in-place in the array. How do I do that? (without explicitly iterating with foreach etc.) I don't know if this is intended to be support

Re: Assigning map result, and in-place map

2010-09-03 Thread Nick Sabalausky
"Bert van Leeuwen" wrote in message news:i5qftb$2a2...@digitalmars.com... > I'm a D n00b, so excuse my question if it is silly. I've cursorily > "followed" D for a few years, but only now bought "The D Programming > Language" (great book, very nicely written!) and started to really play > with

Assigning map result, and in-place map

2010-09-03 Thread Bert van Leeuwen
I'm a D n00b, so excuse my question if it is silly. I've cursorily "followed" D for a few years, but only now bought "The D Programming Language" (great book, very nicely written!) and started to really play with it. I've run into two questions which I have not been able to find the answers to