Lets say I have an array as follows:
"I", "am", "", "still", "here", "", "man"
and from this I wish to produce the following two arrays:
"I", "am", "still", "here", "man"
0, 1, 3, 4, 6
So, an array without the empty strings, but also an array with the array indexes of the non empty strings. What would be a nice way of producing these two arrays from the first?
UPDATE:
I need the first array intact, after the two arrays are produced.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…