I'm aware of how completely flattening a list of sublists is done, however, I am unsure of how to do so by only one level.
For example, a sublist like [[[1, 2], 3], [[4, 5], 6], [[7, 8], 9]]
would get flattened into [1, 2, 3, 4, 5, 6, 7, 8, 9]
.
However, I'm struggling to figure out a way for the result to be [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
, without ending up flattening the entire list.
Any help will be appreciated!