I have some lists which have many brackets. I'd like to remove brackets from the lists.
For example, I need to change the list
{{{{0, 5}, {1, 4}, {2, 3}, {3, 2}, {4, 1}, {5, 0}}}, {{{1, 5}, {2, 4}, {3, 3}, {4, 2}, {5, 1}}}, {{{2, 5}, {3, 4}, {4, 3}, {5, 2}}}, {{{3, 5}, {4, 4}, {5, 3}}}, {{{4, 5}, {5, 4}}}, {{{5, 5}}, {{5, 5}}}}
into
{{0, 5}, {1, 4}, {2, 3}, {3, 2}, {4, 1}, {5, 0}, {1, 5}, {2, 4}, {3, 3}, {4, 2}, {5, 1}, {2, 5}, {3, 4}, {4, 3}, {5, 2}, {3, 5}, {4, 4}, {5, 3}, {4, 5}, {5, 4}, {5, 5}, {5, 5}}.
Here, I'd like {5, 5} to remain intact, and the extra brackets to be erased.
How should I do it?
Flatten[]. Pay attention to its second argument. – J. M.'s missing motivation Jun 26 '15 at 05:48Flatten[list, 2]to be precise. – C. E. Jun 26 '15 at 05:58