loops - How to delete an element from an array, which is in looping ? -


The following is a psuedo-code example of what I'm trying to do: I have a loop on an array and based on a condition:

There is a simple solution for this problem, before the last element the loop.

  i = For the size (myArray): 1 if my array (i) == some value is removed (myArray, i)    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

c# - GetType() == type perfomance question -