Jumping Back and Forth 23
This commit is contained in:
parent
98e7f950cf
commit
8717d37445
13 changed files with 299 additions and 30 deletions
|
|
@ -24,6 +24,10 @@ struct DynArray(T){
|
|||
assert(ptr || !count);
|
||||
return ptr[0 .. count];
|
||||
}
|
||||
auto opSlice(size_t i, size_t o){
|
||||
assert(ptr || !count);
|
||||
return ptr[i .. o];
|
||||
}
|
||||
ref auto opIndex(size_t i){
|
||||
assert(ptr && count);
|
||||
return ptr[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue