Take reshape - kevinlawler/kona GitHub Wiki
n#x: Take first/last n elements from the list (or repeat atom)
3#1 2 3 4 5 1 2 3 -3#1 2 3 4 5 3 4 5 3 # 1 1 1 1 10 # 1 2 3 1 2 3 1 2 3 1 2 3 1
n m#x: Reshape vector to matrix
2 2 # 1 2 3 4 (1 2 3 4) 2 2 # 1 (1 1 1 1)
d1 d2 d3 ... dn#x: Reshape vector to n dimensions, i elements at di. One element di may be -1. If it is -1 then it causes an even distribution at its place.
2 2 2 2#1
(((1 1
1 1)
(1 1
1 1))
((1 1
1 1)
(1 1
1 1)))
3 -1#"i have only proved it correct"
("i have on"
"ly proved"
" it corre")