There was a question to turn a list (of any length) to a matrix here (see link at the bottom), but I'd like to do the opposite, turn a matrix into a list, recursively.
Matrix = [[a,b,c],[d,e,f]]
define predicate :
matrixToList(MyMatrix,NewList)
where NewList = [a,b,c,d,e,f].
Can anyone please help?
Thank you.