genetically modified slices - is it possible?

Jonathan M Davis jmdavisProg at gmx.com
Sat Nov 16 14:50:24 PST 2013


On Saturday, November 16, 2013 08:10:30 Ali Çehreli wrote:
> On 11/15/2013 06:55 AM, Alexandr Druzhinin wrote:
> > I'd like to get slice that's consist of begining one other slice and end
> > of yet another slice (all slices belong to the same array of course). Is
> > it possible? With iterators it's simple, but I can't manage do it with
> > slices.
> > http://dpaste.dzfl.pl/443cd4a1
> 
> std.range.chain

Ah, good point, though that creates a new range, not a slice of the original, 
so whether it solves your problem depends on what you're trying to do.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list