digitalmars.D - bobef
- .remove for non associative arrays (2/2) Jul 23 2005 I think it would make sense if D had buit in way to remove alements from...
- Chris Sauls (19/21) Jul 23 2005 # // remove elements from an [dynamic] array
- Manfred Nowak (7/9) Jul 23 2005 .remove for non associative arrays <.remove_member@pathlink.com>
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
.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
.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