Given a
list = [0,1,2,3,4,5,6,7,8,9,10]
How can I get a 2D List like:
2dList = [[0,1,2,3],[2,3,4,5],[4,5,6,7],[6,7,8,9],[8,9,10]]
(each 1st dimension of "2dList" has 4 values, there is a "shift" of 2 values from "list". When there isn't 4 values to fulfill the 1st dimension, it just store the last values from "list"]
?
thanks!