- Added range `opSlice()`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-02 08:34:28 +02:00
parent a2fc15aac1
commit 2ecb371d9a
1 changed files with 7 additions and 0 deletions

View File

@ -754,6 +754,13 @@ if(isSector!(SectorType)())
return buff;
}
public T[] opSlice(size_t start, size_t end)
{
// FIXME: This is lazy, do a check for up to where
// and actually make THIS the real implementation
return this.opSlice()[start, end];
}
private static bool isArrayAppend(P)()
{
return __traits(isSame, P, T[]);