Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The function "append" doesn't work apending with lists of lists?

Status
Not open for further replies.

Kipos

Programmer
Dec 25, 2002
1
PT
?- append([[[2, a, 2], [2, 2, 2], [2, 2, 2]], [[2, 2, 2], [2, a, 2], [2, 2, 2]], [[2, 2, 2], [2, 2, 2], [2, a, 2]]] , [[[a, 2, 2], [2, 2, 2], [2, 2, 2]], [[2, 2, 2], [a, 2, 2], [2, 2, 2]], [[2, 2, 2], [2, 2, 2], [a, 2, 2]]] , X).

X = [[[2, a, 2], [2, 2, 2], [2, 2, 2]], [[2, 2, 2], [2, a, 2], [2, 2, 2]], [[2, 2, 2], [2, 2, 2], [2, a, 2]], [[a, 2, 2], [2, 2, 2], [2, 2|...]], [[2, 2, 2], [a, 2|...], [2|...]], [[2, 2|...], [2|...], [...|...]]]

Above i've got the exampe of my problem.When i try to use the "append" function to join two lists of lists, the result it's not quite good!Can anyone help me please?
Thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top