S
Surjit Nameirakpam
Problem
consider an array
a = [1,4,6,7,9,8]
I want to delete the array value w.r.t index
e.g i want to delte 0,4,6 element in one go
I can use the command
a.delete_at(0)
a.delete_at(4)
a.delete_at(6)
But the problem is that i dont know how much element will be populated
in my array every time the program runs and the index value will also
change.
So i need to dynamically pass the index value and this should delete the
values pertaining to the index
consider an array
a = [1,4,6,7,9,8]
I want to delete the array value w.r.t index
e.g i want to delte 0,4,6 element in one go
I can use the command
a.delete_at(0)
a.delete_at(4)
a.delete_at(6)
But the problem is that i dont know how much element will be populated
in my array every time the program runs and the index value will also
change.
So i need to dynamically pass the index value and this should delete the
values pertaining to the index