Mapping with partial

matovitch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 30 11:37:52 PDT 2015


On Monday, 30 March 2015 at 18:34:19 UTC, Adam D. Ruppe wrote:
> On Monday, 30 March 2015 at 18:29:32 UTC, matovitch wrote:
>> I tried importing std.range and points.array works too.
>
> Aye, that would work too, but the slice I think is more 
> efficient as I'm pretty sure... not completely sure, but I 
> think .array makes a copy of static arrays, whereas the slice 
> doesn't.

I was going to ask you the question does it just add the range 
shell or does it make a copy ? :/ Maybe someone else know.


More information about the Digitalmars-d-learn mailing list