Suppose we have the following list
data = {{1, 2, 3}, {4, 3, 2, 1, 0}, {6, 7, 8}, {-5, -4, -3, -2, -1},
{-2, -3, -4}, {1, 1, 1, 1, 1}}
As we can see, some of the sublists have 3 elements, while others have 5 elements. I want the following: create two new lists lts3 and lst5 one with the 3-elements sublists and the other with all the 5-elements sublists.
lst3 = {{1, 2, 3}, {6, 7, 8}, {-2, -3, -4}};
lst5 = {{4, 3, 2, 1, 0}, {-5, -4, -3, -2,- 1}, {1, 1, 1, 1, 1}}
Any ideas?
