www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - bobef

reply .remove for non associative arrays <.remove_member pathlink.com> writes:
I think it would make sense if D had buit in way to remove alements from arrays.
Something like array.remove(2..6); or array.remove(2,6); maybe?
Jul 23 2005
next sibling parent Chris Sauls <ibisbasenji gmail.com> writes:
.remove for non associative arrays wrote:
 I think it would make sense if D had buit in way to remove alements from
arrays.
 Something like array.remove(2..6); or array.remove(2,6); maybe?
Although I agree it would be nice to have, as its a fairly common operation. And would be "consistant" in at least one sense with the new .remove() function for associative arrays. -- Chris Sauls
Jul 23 2005
prev sibling parent Manfred Nowak <svv1999 hotmail.com> writes:
.remove for non associative arrays <.remove_member pathlink.com>
wrote: 

[...]
 it would make sense if D had buit in way to remove
 alements from arrays.
And what should the semantics of such an operation look alike? Seems that you are in a need for a complete other data structure than arrays. -manfred
Jul 23 2005