@OderWat

Sorry, can not really understand... Somethink like memCopy or memMove? That was 
my first idea, but I was very unsure what would happen when array elements are 
not somethink like plain ints, but objects with refs. Would that confuse the GC?

And of course one may ask if array shifting is a good idea at all -- for many 
use cases other data structures may be a better solution. I was in need for 
that shifting for may chess game -- there position in the array is bound to 
ply, use of array is very convenient and overhead is very low. I can not 
remember if i inspected Nim sources before i started coding the shift proc -- I 
think so, but coding time was some months ago. I guess for seqs there may exist 
a deleteAt() which we may inspect.

Reply via email to