i need some help with this, i have a list of this kind:
[[[4,11,9,7],[4,13,8,6],[4,12,10,5]],[[3,12,8,7],[3,11,10,6],[3,13,9,5]],[[2,13,10,7],[2,12,9,6],[2,11,8,5]]] %(is a list with three lists, and inside of each list are other three list)
And i´m trying to get one like this:
[[4,11,9,7],[4,13,8,6],[4,12,10,5],[3,12,8,7],[3,11,10,6],[3,13,9,5],[2,13,10,7],[2,12,9,6],[2,11,8,5]] %(a list with nine lists).
%Currently i have this kind of append, but the output isn't near what i need:
appendL([],[]). %->base case
appendL([H], H). %->base case
appendL([H,H2|T], [L3|L1]):-
append(L,L1,L3),
append(H,H2,L),
appendL(T, L1).
This one give:
[[[4,11,9,7],[4,13,8,6],[4,12,10,5],[3,12,8,7],[3,11,10,6],[3,13,9,5],[2,13,10,7],[2,12,9,6],[2,11,8,5]],[2,13,10,7],[2,12,9,6],[2,11,8,5]]
And you can notice that there is three list that appears two times