@Clonk

Technically this is would give me the value that i am looking for, but `high` 
isn't available for Table, and openArray is not the right type for my needs

@ElegantBeef

i am using a Table because the memory is a random access memory, if i were to 
use a `seq` and would like to set `mem[50] = 'A'` i would need to fill `mem` 
with unneeded values until i can set `mem[50]`, which is not the most efficient 
way to do it,

> If you used a `seq[char]` you could use `mem[^1]` to get the last element in 
> the sequence.

then again `mem[^1]` would give me the last element, but i need the last 
greatest index, because in my `dump` procedure i need to know the range which 
`mem` span across, for optimization and not needing to scan through whole range 
of `Natural` when i could just scan in range of `0..last`

There doesn't seems to have an alternative for that, i am stuck doing O(N+M) 
passes,

Well, anyways thank for your answers.

Reply via email to