6
Consider the following list:
list = {{1}, {1}, {1}, {1, 6}, {1, 4}, {1, 3, 5}, {1, 3, 2}};
How can the sub-lists be padded to the length of the longest sub-list (in this case 3), with the last value of the sub-list? The expected result is
{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 6, 6}, {1, 4,...