Efficient way to remove empty lists from lists?

Viewed 6369

What is the most efficient way to remove all empty List[] objects from all of the Lists that appear in an expression at different levels? The empty List[] should be removed only if it is an element of another List itself.

1 Answers
Related