Jumping Back and Forth 23

This commit is contained in:
nazrin 2025-06-08 05:32:04 +00:00
parent 98e7f950cf
commit 8717d37445
13 changed files with 299 additions and 30 deletions

View file

@ -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];