I have this list:
[[0,4,1,4],[1,12,1,4],[2,8,1,4],[3,54,2,4],[4,1,2,2]]
I also have another list: [2,3]
-- Represents the indexes i want to get from each sublist
Output should be like:
[[1,4],[1,4],[1,4],[2,4],[2,2]]
Another example:
List :
[[0,4,1,4],[1,12,1,4],[2,8,1,4],[3,54,2,4],[4,1,2,2]]
Indexes : [0,2,3]
Output should be like:
[[0,1,4],[1,1,4],[2,1,4],[3,2,4],[4,2,2]]