[ library(matrix_util) | Reference Manual | Alphabetic Index ]
list2rows(+List, +NRows, +NCols, -Rows)
Create a matrix from a flat list of row-wise listed elements
Examples
?- list2rows([1,2,3,4,5,6],2,3,Rows).
Rows = [[1, 2, 3], [4, 5, 6]]
Yes (0.00s cpu)