D is our last hope

Kagamin spam at here.lot
Tue Nov 28 07:23:46 UTC 2023


```
public fun ByteArray.sliceArray(indices: IntRange): ByteArray {
     if (indices.isEmpty()) return ByteArray(0)
     return copyOfRange(indices.start, indices.endInclusive + 1)
}
```
Is this accurate? copyOfRange?


More information about the Digitalmars-d mailing list