I have a vector that might look like these forms :
list_temp = Any[(Any[(“Bus1”, “Bus2"”), (“Bus2”, “Bus1”)],), (Any,)]
list_temp = Any[(Any,), (Any[(“Madagascar1”, “Madagascar2”)],)]
I would like to remove any empty arrays inside my vector.
I have tried:
new_list=[s for s in list_temp if !isempty(s)]
but it does not really remove empty values.
Anyone knows how can I deal with it?
Thanks.