Can someone help me find the error in these rules?
concat([], List, List). concat([Head|[]], List, [Head|List]). concat([Head|Tail], List, Concat) :- concat(
It can be done by using append.
concatenate(List1, List2, Result):- append(List1, List2, Result).
Hope this helps.