mirror of https://github.com/deavmi/niknaks
View
- `opSlice()` now forwards to `opSlice(size_t, size_t)`
This commit is contained in:
parent
6372f2d8c7
commit
c886ba184b
|
@ -742,16 +742,7 @@ if(isSector!(SectorType)())
|
|||
|
||||
public T[] opSlice()
|
||||
{
|
||||
T[] buff;
|
||||
foreach(SectorType sector; this.sectors)
|
||||
{
|
||||
buff ~= sector[];
|
||||
}
|
||||
|
||||
// Trim to "fake" size
|
||||
buff.length = this.curSize;
|
||||
|
||||
return buff;
|
||||
return this[0..this.length];
|
||||
}
|
||||
|
||||
public T[] opSlice(size_t start, size_t end)
|
||||
|
|
Loading…
Reference in New Issue