[ library(matrix_util) | Reference Manual | Alphabetic Index ]

concat(+RowsOrCols, -List)

Concatenate all the rows (or columns) into a flat list

Examples

    ?- list2rows([1,2,3,4,5,6],2,3,Rows), concat(Rows,Xs).
    Rows = [[1, 2, 3], [4, 5, 6]]
    Xs = [1, 2, 3, 4, 5, 6]
    Yes (0.00s cpu)
    

See Also

list2rows / 4, list2cols / 4, transpose / 2