1 alias R = Region!(int, int); 2 alias TI = R.TaggedInterval; 3 4 R emptyRegion; 5 auto region1 = R(0, 5, 10); 6 auto region2 = R([TI(0, 5, 10), TI(0, 15, 20)]); 7 8 assert(emptyRegion.intervals == []); 9 assert(region1.intervals == [TI(0, 5, 10)]); 10 assert(region2.intervals == [TI(0, 5, 10), TI(0, 15, 20)]);
Return a list of the tagged intervals in this region.