array.remove(int), similar to aa.remove(key)

Lionello Lunesu lio at lunesu.remove.com
Wed May 24 01:50:48 PDT 2006


array.remove(int) could simply replace [i] with [$-1] and decrement the 
length.

I need this quite a lot and it gets tiresome writing the same 'for' over 
and over. Furthermore, like I've mentioned in the title: since AA's have 
it, it makes sense to add it to normal arrays as well.

L.



More information about the Digitalmars-d mailing list