List get rid of sublist

Hi!

I know is a very simple problem but i can solve it. If somebody can help me…

I have a list of boleans and i try to get the indices of the true values, I try with flatten, list map with flatten but i can get it. In blue the expected solution.

Thanks in advance.

list-edit-20230322091134

@pmerryason ,

i think something like clean list should work

KR
Andreas

Thanks, Andreas.

1 Like